init(ink:strokePath:transform:mask:)
Creates a stroke with the line properties, path, transform, and mask that you specify.
Declaration
init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?)init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: NSBezierPath?)Parameters
- ink:
The Pkinkreference the class uses to render this stroke.
- strokePath:
The B-spline path that describes this stroke.
- transform:
The Cgaffinetransform to apply to this stroke. Defaults to Cgaffinetransformidentity.
- mask:
The pretransform mask the class uses to clip the rendering of the stroke.