gdiplus: Implemented GdipDrawImageRectRectI.

This commit is contained in:
Jon Yang 2008-02-28 21:54:47 -08:00 committed by Alexandre Julliard
parent 0c3ecefbc3
commit 29bc9ba14e
2 changed files with 20 additions and 1 deletions

View File

@ -184,7 +184,7 @@
@ stub GdipDrawImageRect @ stub GdipDrawImageRect
@ stub GdipDrawImageRectI @ stub GdipDrawImageRectI
@ stdcall GdipDrawImageRectRect(ptr ptr long long long long long long long long long ptr long ptr) @ 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 GdipDrawLine(ptr ptr long long long long)
@ stdcall GdipDrawLineI(ptr ptr long long long long) @ stdcall GdipDrawLineI(ptr ptr long long long long)
@ stdcall GdipDrawLines(ptr ptr ptr long) @ stdcall GdipDrawLines(ptr ptr ptr long)

View File

@ -1158,6 +1158,25 @@ GpStatus WINGDIPAPI GdipDrawImageRectRect(GpGraphics *graphics, GpImage *image,
srcwidth, srcheight, srcUnit, imageattr, callback, callbackData); 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, GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1,
REAL y1, REAL x2, REAL y2) REAL y1, REAL x2, REAL y2)
{ {