gdiplus: Implemented GdipSetClipHrgn.
This commit is contained in:
parent
bcfe4e7e46
commit
f8edb068e7
|
@ -507,7 +507,7 @@
|
|||
@ stdcall GdipSetAdjustableArrowCapMiddleInset(ptr long)
|
||||
@ stdcall GdipSetAdjustableArrowCapWidth(ptr long)
|
||||
@ stdcall GdipSetClipGraphics(ptr ptr long)
|
||||
@ stub GdipSetClipHrgn
|
||||
@ stdcall GdipSetClipHrgn(ptr long long)
|
||||
@ stdcall GdipSetClipPath(ptr ptr long)
|
||||
@ stdcall GdipSetClipRect(ptr long long long long long)
|
||||
@ stdcall GdipSetClipRectI(ptr long long long long long)
|
||||
|
|
|
@ -3083,6 +3083,29 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
|
|||
return GdipTranslateMatrix(graphics->worldtrans, dx, dy, order);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* GdipSetClipHrgn [GDIPLUS.@]
|
||||
*/
|
||||
GpStatus WINGDIPAPI GdipSetClipHrgn(GpGraphics *graphics, HRGN hrgn, CombineMode mode)
|
||||
{
|
||||
GpRegion *region;
|
||||
GpStatus status;
|
||||
|
||||
TRACE("(%p, %p, %d)\n", graphics, hrgn, mode);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
status = GdipCreateRegionHrgn(hrgn, ®ion);
|
||||
if(status != Ok)
|
||||
return status;
|
||||
|
||||
status = GdipSetClipRegion(graphics, region, mode);
|
||||
|
||||
GdipDeleteRegion(region);
|
||||
return status;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetClipPath(GpGraphics *graphics, GpPath *path, CombineMode mode)
|
||||
{
|
||||
TRACE("(%p, %p, %d)\n", graphics, path, mode);
|
||||
|
|
Loading…
Reference in New Issue