gdiplus: Added GdipGetPathPoints.

This commit is contained in:
Evan Stade 2007-07-06 16:14:38 -07:00 committed by Alexandre Julliard
parent 8a114adefe
commit 08784f3717
3 changed files with 15 additions and 1 deletions

View File

@ -327,7 +327,7 @@
@ stub GdipGetPathGradientTransform
@ stub GdipGetPathGradientWrapMode
@ stub GdipGetPathLastPoint
@ stub GdipGetPathPoints
@ stdcall GdipGetPathPoints(ptr ptr long)
@ stub GdipGetPathPointsI
@ stub GdipGetPathTypes
@ stub GdipGetPathWorldBounds

View File

@ -144,6 +144,19 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
return Ok;
}
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath *path, GpPointF* points, INT count)
{
if(!path)
return InvalidParameter;
if(count < path->pathdata.Count)
return InsufficientBuffer;
memcpy(points, path->pathdata.Points, path->pathdata.Count);
return Ok;
}
GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
{
if(!path)

View File

@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
#ifdef __cplusplus