gdiplus: Implemented GdipGetPathWorldBoundsI.
This commit is contained in:
parent
d93062f13e
commit
726253d7a3
|
@ -347,7 +347,7 @@
|
||||||
@ stdcall GdipGetPathPointsI(ptr ptr long)
|
@ stdcall GdipGetPathPointsI(ptr ptr long)
|
||||||
@ stdcall GdipGetPathTypes(ptr ptr long)
|
@ stdcall GdipGetPathTypes(ptr ptr long)
|
||||||
@ stdcall GdipGetPathWorldBounds(ptr ptr ptr ptr)
|
@ stdcall GdipGetPathWorldBounds(ptr ptr ptr ptr)
|
||||||
@ stub GdipGetPathWorldBoundsI
|
@ stdcall GdipGetPathWorldBoundsI(ptr ptr ptr ptr)
|
||||||
@ stdcall GdipGetPenBrushFill(ptr ptr)
|
@ stdcall GdipGetPenBrushFill(ptr ptr)
|
||||||
@ stdcall GdipGetPenColor(ptr ptr)
|
@ stdcall GdipGetPenColor(ptr ptr)
|
||||||
@ stub GdipGetPenCompoundArray
|
@ stub GdipGetPenCompoundArray
|
||||||
|
|
|
@ -623,6 +623,24 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipGetPathWorldBoundsI(GpPath* path, GpRect* bounds,
|
||||||
|
GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen)
|
||||||
|
{
|
||||||
|
GpStatus ret;
|
||||||
|
GpRectF boundsF;
|
||||||
|
|
||||||
|
ret = GdipGetPathWorldBounds(path,&boundsF,matrix,pen);
|
||||||
|
|
||||||
|
if(ret == Ok){
|
||||||
|
bounds->X = roundr(boundsF.X);
|
||||||
|
bounds->Y = roundr(boundsF.Y);
|
||||||
|
bounds->Width = roundr(boundsF.Width);
|
||||||
|
bounds->Height = roundr(boundsF.Height);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
|
GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
|
||||||
{
|
{
|
||||||
if(!path)
|
if(!path)
|
||||||
|
|
Loading…
Reference in New Issue