Commit 29bc9ba1 authored by Jon Yang's avatar Jon Yang Committed by Alexandre Julliard

gdiplus: Implemented GdipDrawImageRectRectI.

parent 0c3ecefb
......@@ -184,7 +184,7 @@
@ stub GdipDrawImageRect
@ stub GdipDrawImageRectI
@ stdcall GdipDrawImageRectRect(ptr ptr long long long long long long long long long ptr long ptr)
@ stub GdipDrawImageRectRectI
@ stdcall GdipDrawImageRectRectI(ptr ptr long long long long long long long long long ptr long ptr)
@ stdcall GdipDrawLine(ptr ptr long long long long)
@ stdcall GdipDrawLineI(ptr ptr long long long long)
@ stdcall GdipDrawLines(ptr ptr ptr long)
......
......@@ -1158,6 +1158,25 @@ GpStatus WINGDIPAPI GdipDrawImageRectRect(GpGraphics *graphics, GpImage *image,
srcwidth, srcheight, srcUnit, imageattr, callback, callbackData);
}
GpStatus WINGDIPAPI GdipDrawImageRectRectI(GpGraphics *graphics, GpImage *image,
INT dstx, INT dsty, INT dstwidth, INT dstheight, INT srcx, INT srcy,
INT srcwidth, INT srcheight, GpUnit srcUnit,
GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback,
VOID * callbackData)
{
GpPointF points[3];
points[0].X = dstx;
points[0].Y = dsty;
points[1].X = dstx + dstwidth;
points[1].Y = dsty;
points[2].X = dstx;
points[2].Y = dsty + dstheight;
return GdipDrawImagePointsRect(graphics, image, points, 3, srcx, srcy,
srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData);
}
GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1,
REAL y1, REAL x2, REAL y2)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment