Jon Yang : gdiplus: Implemented GdipDrawImageRectRectI.
Alexandre Julliard
julliard at winehq.org
Sat Mar 1 06:13:24 CST 2008
Module: wine
Branch: master
Commit: 29bc9ba14e0b0f787e6312b1a84ff1f66a8390bc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=29bc9ba14e0b0f787e6312b1a84ff1f66a8390bc
Author: Jon Yang <jyang08 at ucla.edu>
Date: Thu Feb 28 21:54:47 2008 -0800
gdiplus: Implemented GdipDrawImageRectRectI.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphics.c | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index ce4640f..2118a3d 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -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)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 508b489..74c755b 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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)
{
More information about the wine-cvs
mailing list