gdiplus: Implement GdipCreatePath2I.
This commit is contained in:
parent
0f42f4c532
commit
ae576c40b8
|
@ -114,7 +114,7 @@
|
||||||
@ stdcall GdipCreateMetafileFromWmf(ptr long ptr ptr)
|
@ stdcall GdipCreateMetafileFromWmf(ptr long ptr ptr)
|
||||||
@ stub GdipCreateMetafileFromWmfFile
|
@ stub GdipCreateMetafileFromWmfFile
|
||||||
@ stdcall GdipCreatePath2(ptr ptr long long ptr)
|
@ stdcall GdipCreatePath2(ptr ptr long long ptr)
|
||||||
@ stub GdipCreatePath2I
|
@ stdcall GdipCreatePath2I(ptr ptr long long ptr)
|
||||||
@ stdcall GdipCreatePath(long ptr)
|
@ stdcall GdipCreatePath(long ptr)
|
||||||
@ stdcall GdipCreatePathGradient(ptr long long ptr)
|
@ stdcall GdipCreatePathGradient(ptr long long ptr)
|
||||||
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
|
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
|
||||||
|
|
|
@ -403,6 +403,27 @@ GpStatus WINGDIPAPI GdipCreatePath2(GDIPCONST GpPointF* points,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCreatePath2I(GDIPCONST GpPoint* points,
|
||||||
|
GDIPCONST BYTE* types, INT count, GpFillMode fill, GpPath **path)
|
||||||
|
{
|
||||||
|
GpPointF *ptF;
|
||||||
|
GpStatus ret;
|
||||||
|
INT i;
|
||||||
|
|
||||||
|
ptF = GdipAlloc(sizeof(GpPointF)*count);
|
||||||
|
|
||||||
|
for(i = 0;i < count; i++){
|
||||||
|
ptF[i].X = (REAL)points[i].X;
|
||||||
|
ptF[i].Y = (REAL)points[i].Y;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = GdipCreatePath2(ptF, types, count, fill, path);
|
||||||
|
|
||||||
|
GdipFree(ptF);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
|
GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
|
||||||
{
|
{
|
||||||
if(!path)
|
if(!path)
|
||||||
|
|
|
@ -198,6 +198,7 @@ GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
|
||||||
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
|
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
|
||||||
GpStatus WINGDIPAPI GdipCreatePath2(GDIPCONST GpPointF*,GDIPCONST BYTE*,INT,
|
GpStatus WINGDIPAPI GdipCreatePath2(GDIPCONST GpPointF*,GDIPCONST BYTE*,INT,
|
||||||
GpFillMode,GpPath**);
|
GpFillMode,GpPath**);
|
||||||
|
GpStatus WINGDIPAPI GdipCreatePath2I(GDIPCONST GpPoint*,GDIPCONST BYTE*,INT,GpFillMode,GpPath**);
|
||||||
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
|
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*);
|
GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
|
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
|
||||||
|
|
Loading…
Reference in New Issue