BezierSegment

open class BezierSegment : ShapeSegment

Represents a shape segment in the form of a Bezier curve. This class inherits ShapeSegment.

  • Draws this BezierSegment at the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas to draw this BezierSegment at.

  • Adds this BezierSegment to the specified path.

    Declaration

    Swift

    open override func addToPath(_ path: GraphicsPath)

    Parameters

    path

    The path to add this BezierSegment to.

  • Declaration

    Swift

    open override func loadFromXml(_ element: XmlElement?)
  • p1

    The first control point in this Bezier segment.

    Declaration

    Swift

    open var p1: Point
  • p2

    The second control point in this Bezier segment.

    Declaration

    Swift

    open var p2: Point
  • p3

    The third control point in this Bezier segment.

    Declaration

    Swift

    open var p3: Point
  • p4

    The fourth control point in this Bezier segment.

    Declaration

    Swift

    open var p4: Point