gdiplus: Added GdipGetPathPoints.
This commit is contained in:
parent
8a114adefe
commit
08784f3717
|
@ -327,7 +327,7 @@
|
|||
@ stub GdipGetPathGradientTransform
|
||||
@ stub GdipGetPathGradientWrapMode
|
||||
@ stub GdipGetPathLastPoint
|
||||
@ stub GdipGetPathPoints
|
||||
@ stdcall GdipGetPathPoints(ptr ptr long)
|
||||
@ stub GdipGetPathPointsI
|
||||
@ stub GdipGetPathTypes
|
||||
@ stub GdipGetPathWorldBounds
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue