Evan Stade : gdiplus: Image getter stubs.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 25 07:44:21 CDT 2007


Module: wine
Branch: master
Commit: 45c24bbef3e914aaf4ffae5baef896fa2c0db311
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=45c24bbef3e914aaf4ffae5baef896fa2c0db311

Author: Evan Stade <estade at gmail.com>
Date:   Tue Jul 24 17:19:02 2007 -0700

gdiplus: Image getter stubs.

---

 dlls/gdiplus/Makefile.in  |    1 +
 dlls/gdiplus/gdiplus.spec |   12 +++---
 dlls/gdiplus/image.c      |  104 +++++++++++++++++++++++++++++++++++++++++++++
 include/gdiplusflat.h     |    7 +++
 4 files changed, 118 insertions(+), 6 deletions(-)

diff --git a/dlls/gdiplus/Makefile.in b/dlls/gdiplus/Makefile.in
index c47b6a6..dc4e2e0 100644
--- a/dlls/gdiplus/Makefile.in
+++ b/dlls/gdiplus/Makefile.in
@@ -12,6 +12,7 @@ C_SRCS = \
 	gdiplus.c \
 	graphics.c \
 	graphicspath.c \
+	image.c \
 	matrix.c \
 	pathiterator.c \
 	pen.c
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 5481670..fa0560e 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -273,16 +273,16 @@
 @ stub GdipGetImageEncodersSize
 @ stub GdipGetImageFlags
 @ stub GdipGetImageGraphicsContext
-@ stub GdipGetImageHeight
-@ stub GdipGetImageHorizontalResolution
+@ stdcall GdipGetImageHeight(ptr ptr)
+@ stdcall GdipGetImageHorizontalResolution(ptr ptr)
 @ stub GdipGetImagePalette
 @ stub GdipGetImagePaletteSize
 @ stub GdipGetImagePixelFormat
-@ stub GdipGetImageRawFormat
+@ stdcall GdipGetImageRawFormat(ptr ptr)
 @ stub GdipGetImageThumbnail
 @ stub GdipGetImageType
-@ stub GdipGetImageVerticalResolution
-@ stub GdipGetImageWidth
+@ stdcall GdipGetImageVerticalResolution(ptr ptr)
+@ stdcall GdipGetImageWidth(ptr ptr)
 @ stdcall GdipGetInterpolationMode(ptr ptr)
 @ stub GdipGetLineBlend
 @ stub GdipGetLineBlendCount
@@ -389,7 +389,7 @@
 @ stdcall GdipGetWorldTransform(ptr ptr)
 @ stub GdipGraphicsClear
 @ stub GdipImageForceValidation
-@ stub GdipImageGetFrameCount
+@ stdcall GdipImageGetFrameCount(ptr ptr ptr)
 @ stub GdipImageGetFrameDimensionsCount
 @ stub GdipImageGetFrameDimensionsList
 @ stub GdipImageRotateFlip
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
new file mode 100644
index 0000000..465ba0d
--- /dev/null
+++ b/dlls/gdiplus/image.c
@@ -0,0 +1,104 @@
+/*
+ * Copyright (C) 2007 Google (Evan Stade)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "windef.h"
+#include "wingdi.h"
+#include "gdiplus.h"
+#include "gdiplus_private.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
+
+GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height)
+{
+    static int calls;
+
+    if(!image || !height)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res)
+{
+    static int calls;
+
+    if(!image || !res)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format)
+{
+    static int calls;
+
+    if(!image || !format)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res)
+{
+    static int calls;
+
+    if(!image || !res)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)
+{
+    static int calls;
+
+    if(!image || !width)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
+    GDIPCONST GUID* dimensionID, UINT* count)
+{
+    static int calls;
+
+    if(!image || !dimensionID || !count)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index e493df5..5614fa0 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -126,6 +126,13 @@ GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath*,GpPath*,GpLineCap,REAL,
     GpCustomLineCap**);
 GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
 
+GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*);
+GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*);
+GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);
+GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage*,REAL*);
+GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*);
+GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage*,GDIPCONST GUID*,UINT*);
+
 #ifdef __cplusplus
 }
 #endif




More information about the wine-cvs mailing list