gdiplus: Added GdipTransformPath.

This commit is contained in:
Evan Stade 2007-07-11 18:08:05 -07:00 committed by Alexandre Julliard
parent 05450b0366
commit 1f1ecfb2b5
3 changed files with 14 additions and 1 deletions

View File

@ -584,7 +584,7 @@
@ stub GdipTestControl @ stub GdipTestControl
@ stdcall GdipTransformMatrixPoints(ptr ptr long) @ stdcall GdipTransformMatrixPoints(ptr ptr long)
@ stub GdipTransformMatrixPointsI @ stub GdipTransformMatrixPointsI
@ stub GdipTransformPath @ stdcall GdipTransformPath(ptr ptr)
@ stub GdipTransformPoints @ stub GdipTransformPoints
@ stub GdipTransformPointsI @ stub GdipTransformPointsI
@ stub GdipTransformRegion @ stub GdipTransformRegion

View File

@ -222,3 +222,15 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath *path)
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix)
{
if(!path)
return InvalidParameter;
if(path->pathdata.Count == 0)
return Ok;
return GdipTransformMatrixPoints(matrix, (GpPointF*) path->pathdata.Points,
path->pathdata.Count);
}

View File

@ -59,6 +59,7 @@ GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT); GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*); GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*); GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**); GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*); GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);