Commit ef6c4166 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipPathIterCopyData.

parent 08508289
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
@ stub GdipMultiplyWorldTransform @ stub GdipMultiplyWorldTransform
@ stub GdipNewInstalledFontCollection @ stub GdipNewInstalledFontCollection
@ stub GdipNewPrivateFontCollection @ stub GdipNewPrivateFontCollection
@ stub GdipPathIterCopyData @ stdcall GdipPathIterCopyData(ptr ptr ptr ptr long long)
@ stub GdipPathIterEnumerate @ stub GdipPathIterEnumerate
@ stub GdipPathIterGetCount @ stub GdipPathIterGetCount
@ stub GdipPathIterGetSubpathCount @ stub GdipPathIterGetSubpathCount
......
...@@ -62,3 +62,24 @@ GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator *iter) ...@@ -62,3 +62,24 @@ GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator *iter)
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator* iterator,
INT* resultCount, GpPointF* points, BYTE* types, INT startIndex, INT endIndex)
{
if(!iterator || !types || !points)
return InvalidParameter;
if(endIndex > iterator->pathdata.Count - 1 || startIndex < 0 ||
endIndex < startIndex){
*resultCount = 0;
return Ok;
}
*resultCount = endIndex - startIndex + 1;
memcpy(types, &(iterator->pathdata.Types[startIndex]), *resultCount);
memcpy(points, &(iterator->pathdata.Points[startIndex]),
*resultCount * sizeof(PointF));
return Ok;
}
...@@ -87,6 +87,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix*,GpPointF*,INT); ...@@ -87,6 +87,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix*,GpPointF*,INT);
GpStatus WINGDIPAPI GdipCreatePathIter(GpPathIterator**,GpPath*); GpStatus WINGDIPAPI GdipCreatePathIter(GpPathIterator**,GpPath*);
GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator*); GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator*);
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
INT,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