Commit 08784f37 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipGetPathPoints.

parent 8a114ade
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
@ stub GdipGetPathGradientTransform @ stub GdipGetPathGradientTransform
@ stub GdipGetPathGradientWrapMode @ stub GdipGetPathGradientWrapMode
@ stub GdipGetPathLastPoint @ stub GdipGetPathLastPoint
@ stub GdipGetPathPoints @ stdcall GdipGetPathPoints(ptr ptr long)
@ stub GdipGetPathPointsI @ stub GdipGetPathPointsI
@ stub GdipGetPathTypes @ stub GdipGetPathTypes
@ stub GdipGetPathWorldBounds @ stub GdipGetPathWorldBounds
......
...@@ -144,6 +144,19 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPath *path) ...@@ -144,6 +144,19 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
return Ok; 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) GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
{ {
if(!path) if(!path)
......
...@@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*); ...@@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*); GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**); GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
GpStatus WINGDIPAPI GdipDeletePath(GpPath*); GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*); GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment