GraphicsPath.GetLastPoint method
Applies to: desktop apps only
The GraphicsPath::GetLastPoint method gets the ending point of the last figure in this path.
Syntax
Status GetLastPoint( [out] PointF *lastPoint );
Parameters
Return value
Type:
Type: Status
If the method succeeds, it returns Ok, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.
Examples
The following example creates a path, adds a sequence of three connected lines to the path, and then gets the last point in the path.
GraphicsPath path;
PointF lastPoint;
Point pts[] = {Point(20,20),
Point(40,20),
Point(40,40),
Point(20,40) };
path.AddLines(pts, 4);
path.GetLastPoint(&lastPoint);
Requirements
|
Minimum supported client | Windows XP, Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Product | GDI+ 1.0 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- GraphicsPath
- AddLines Methods
- PointF
- Clipping with a Region
- Constructing and Drawing Paths
- Creating a Path Gradient
- Paths
Send comments about this topic to Microsoft
Build date: 3/6/2012