gdiplus: Implemented GdipDrawImage.
authorNikolay Sivov <bunglehead@gmail.com>
Mon, 28 Apr 2008 20:10:01 +0000 (00:10 +0400)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 Apr 2008 11:46:28 +0000 (13:46 +0200)
dlls/gdiplus/gdiplus.spec
dlls/gdiplus/graphics.c
include/gdiplusflat.h

index d2baa3675136df59b65f67801947c147d725978a..a49da934e7589baac30d1552617db7ccc1231206 100644 (file)
 @ stub GdipDrawDriverString
 @ stub GdipDrawEllipse
 @ stub GdipDrawEllipseI
-@ stub GdipDrawImage
+@ stdcall GdipDrawImage(ptr ptr long long)
 @ stub GdipDrawImageFX
 @ stdcall GdipDrawImageI(ptr ptr long long)
 @ stub GdipDrawImagePointRect
index b011ef7044a19c32827f201cd3504abe9252730a..4559390e2a144d67deccb183b42778e75272c9a7 100644 (file)
@@ -1115,6 +1115,12 @@ GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen,
     return ret;
 }
 
+GpStatus WINGDIPAPI GdipDrawImage(GpGraphics *graphics, GpImage *image, REAL x, REAL y)
+{
+    /* IPicture::Render uses LONG coords */
+    return GdipDrawImageI(graphics,image,roundr(x),roundr(y));
+}
+
 GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
     INT y)
 {
index de1125ede062a294ccf7e3407482cd45be0a3401..15ab1343bea6ccb90f8aa9cd4978a6836ae307b6 100644 (file)
@@ -74,6 +74,7 @@ GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
 GpStatus WINGDIPAPI GdipDrawCurveI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT);
 GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL);
 GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT,REAL);
+GpStatus WINGDIPAPI GdipDrawImage(GpGraphics*,GpImage*,REAL,REAL);
 GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics*,GpImage*,INT,INT);
 GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics*,GpImage*,
     GDIPCONST GpPointF*,INT,REAL,REAL,REAL,REAL,GpUnit,