Instance Method
draw(inPen:openPen:) drawInPen:openPen: drawInPen_openPen_
Emits the layer to separate pens for closed and open paths.
Declaration
func draw(inPen pen: any GSPenProtocol & NSObjectProtocol, openPen: (any GSPenProtocol & NSObjectProtocol)?)Declaration
- (void) drawInPen:(NSObject<GSPenProtocol> *) pen openPen:(NSObject<GSPenProtocol> *) openPen;Declaration
drawInPen_openPen_(pen: NSObject<GSPenProtocol>, openPen: NSObject<GSPenProtocol>)Parameters
penThe pen that receives closed paths and components.
openPenThe pen that receives open paths.
Discussion
Pass nil for openPen to omit open paths. Full-color layers include their paint when pen supports it.
See Also
Pen Drawing
Emits the layer to a pen.
Emits the layer’s shapes without layer-level paint processing.
Emits the layer without full-color paint processing.
Emits the painted drawing operations of a full-color layer to a pen.
Emits the path and error operations of a draw stack to a pen.