gdiplus: Implemented GdipAddPathClosedCurve2I using GdipAddPathClosedCurve2.
This commit is contained in:
parent
8be642c4c0
commit
831729ada1
@ -5,7 +5,7 @@
|
|||||||
@ stdcall GdipAddPathBeziers(ptr ptr long)
|
@ stdcall GdipAddPathBeziers(ptr ptr long)
|
||||||
@ stdcall GdipAddPathBeziersI(ptr ptr long)
|
@ stdcall GdipAddPathBeziersI(ptr ptr long)
|
||||||
@ stdcall GdipAddPathClosedCurve2(ptr ptr long long)
|
@ stdcall GdipAddPathClosedCurve2(ptr ptr long long)
|
||||||
@ stub GdipAddPathClosedCurve2I
|
@ stdcall GdipAddPathClosedCurve2I(ptr ptr long long)
|
||||||
@ stub GdipAddPathClosedCurve
|
@ stub GdipAddPathClosedCurve
|
||||||
@ stub GdipAddPathClosedCurveI
|
@ stub GdipAddPathClosedCurveI
|
||||||
@ stdcall GdipAddPathCurve2(ptr ptr long long)
|
@ stdcall GdipAddPathCurve2(ptr ptr long long)
|
||||||
|
@ -265,6 +265,32 @@ GpStatus WINGDIPAPI GdipAddPathClosedCurve2(GpPath *path, GDIPCONST GpPointF *po
|
|||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipAddPathClosedCurve2I(GpPath *path, GDIPCONST GpPoint *points,
|
||||||
|
INT count, REAL tension)
|
||||||
|
{
|
||||||
|
GpPointF *ptf;
|
||||||
|
INT i;
|
||||||
|
GpStatus stat;
|
||||||
|
|
||||||
|
if(!path || !points || count <= 1)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
ptf = GdipAlloc(sizeof(GpPointF)*count);
|
||||||
|
if(!ptf)
|
||||||
|
return OutOfMemory;
|
||||||
|
|
||||||
|
for(i = 0; i < count; i++){
|
||||||
|
ptf[i].X = (REAL)points[i].X;
|
||||||
|
ptf[i].Y = (REAL)points[i].Y;
|
||||||
|
}
|
||||||
|
|
||||||
|
stat = GdipAddPathClosedCurve2(path, ptf, count, tension);
|
||||||
|
|
||||||
|
GdipFree(ptf);
|
||||||
|
|
||||||
|
return stat;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipAddPathCurve(GpPath *path, GDIPCONST GpPointF *points, INT count)
|
GpStatus WINGDIPAPI GdipAddPathCurve(GpPath *path, GDIPCONST GpPointF *points, INT count)
|
||||||
{
|
{
|
||||||
if(!path || !points || count <= 1)
|
if(!path || !points || count <= 1)
|
||||||
|
@ -247,6 +247,7 @@ GpStatus WINGDIPAPI GdipAddPathBezierI(GpPath*,INT,INT,INT,INT,INT,INT,INT,INT);
|
|||||||
GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT);
|
GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathBeziersI(GpPath*,GDIPCONST GpPoint*,INT);
|
GpStatus WINGDIPAPI GdipAddPathBeziersI(GpPath*,GDIPCONST GpPoint*,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathClosedCurve2(GpPath*,GDIPCONST GpPointF*,INT,REAL);
|
GpStatus WINGDIPAPI GdipAddPathClosedCurve2(GpPath*,GDIPCONST GpPointF*,INT,REAL);
|
||||||
|
GpStatus WINGDIPAPI GdipAddPathClosedCurve2I(GpPath*,GDIPCONST GpPoint*,INT,REAL);
|
||||||
GpStatus WINGDIPAPI GdipAddPathCurve(GpPath*,GDIPCONST GpPointF*,INT);
|
GpStatus WINGDIPAPI GdipAddPathCurve(GpPath*,GDIPCONST GpPointF*,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathCurveI(GpPath*,GDIPCONST GpPoint*,INT);
|
GpStatus WINGDIPAPI GdipAddPathCurveI(GpPath*,GDIPCONST GpPoint*,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathCurve2(GpPath*,GDIPCONST GpPointF*,INT,REAL);
|
GpStatus WINGDIPAPI GdipAddPathCurve2(GpPath*,GDIPCONST GpPointF*,INT,REAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user