TypedPoint type
A point of a path together with its type.
A path stores its points and their types in two arrays. A TypedPoint keeps one point and its type together, so that code can handle them as one value. PathData takes an array of them, and TypedPoints returns one.
Fields
| Field | Type | Meaning |
|---|---|---|
| pos | GpPointF | The position of the point. |
| type | PathPointType | What kind of point it is. |
Dim user As GdiPlusUser = GdiPlusUser()
Dim tp As TypedPoint
tp.pos = GpPointF(3, 4)
tp.type._value = PathPointTypeLine
Debug.Print tp.pos.X & "," & tp.pos.Y & " " & CLng(tp.type.PointType) ' 3,4 1
See Also
- PathPointType type
- TypedPoints type – an array of typed points with a count
- PathData class
- PathIterator class – Enumerate returns typed points