ShapePath Class
Contents
[
Hide
]ShapePath class
Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape.
type ShapePath struct {
ptr unsafe.Pointer
}
Constructors
| Method | Description |
|---|---|
| NewShapePath | Initializes a new instance of the ShapePath class. |
Methods
| Method | Description |
|---|---|
| IsNull | Checks whether the implementation object is nullptr. |
| GetPathSegementList | Gets ShapeSegmentPathCollection list |
| GetWidthPixel | Gets the width of this path in unit of pixels. |
| SetWidthPixel | Gets the width of this path in unit of pixels. |
| GetHeightPixel | Gets the height of this path in unit of pixels. |
| SetHeightPixel | Gets the height of this path in unit of pixels. |
| MoveTo | Starts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure.Unit: Pixel. |
| LineTo | Appends a line segment to the current figure.The starting point is the end point of the current figure.Unit: Pixel. |
| CubicBezierTo | Appends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure.Unit: Pixel. |
| ArcTo | Appends an elliptical arc to the current figure. The starting point is the end point of the current figure. |
| Close | Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point. |