[11/14] gdiplus: added GdipGetImageType stub
Evan Stade
estade at gmail.com
Tue Jul 24 19:19:12 CDT 2007
Hi,
changelog:
*added GdipGetImageType stub
*added ImageType stub
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/image.c | 13 +++++++++++++
include/gdiplusenums.h | 8 ++++++++
include/gdiplusflat.h | 1 +
4 files changed, 23 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index fa0560e..52179ec 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -280,7 +280,7 @@
@ stub GdipGetImagePixelFormat
@ stdcall GdipGetImageRawFormat(ptr ptr)
@ stub GdipGetImageThumbnail
-@ stub GdipGetImageType
+@ stdcall GdipGetImageType(ptr ptr)
@ stdcall GdipGetImageVerticalResolution(ptr ptr)
@ stdcall GdipGetImageWidth(ptr ptr)
@ stdcall GdipGetInterpolationMode(ptr ptr)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 465ba0d..1ff0d49 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -63,6 +63,19 @@ GpStatus WINGDIPAPI GdipGetImageRawForma
return NotImplemented;
}
+GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type)
+{
+ static int calls;
+
+ if(!image || !type)
+ return InvalidParameter;
+
+ if(!(calls++))
+ FIXME("not implemented\n");
+
+ return NotImplemented;
+}
+
GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res)
{
static int calls;
diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h
index eb807ce..ac9de4b 100644
--- a/include/gdiplusenums.h
+++ b/include/gdiplusenums.h
@@ -157,6 +157,13 @@ enum MatrixOrder
MatrixOrderAppend = 1
};
+enum ImageType
+{
+ ImageTypeUnknown,
+ ImageTypeBitmap,
+ ImageTypeMetafile
+};
+
#ifndef __cplusplus
typedef enum Unit Unit;
@@ -173,6 +180,7 @@ typedef enum PixelOffsetMode PixelOffset
typedef enum DashCap DashCap;
typedef enum DashStyle DashStyle;
typedef enum MatrixOrder MatrixOrder;
+typedef enum ImageType ImageType;
#endif /* end of c typedefs */
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 5614fa0..2df7b7c 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -129,6 +129,7 @@ GpStatus WINGDIPAPI GdipDeleteCustomLine
GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*);
GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*);
GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);
+GpStatus WINGDIPAPI GdipGetImageType(GpImage*,ImageType*);
GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage*,REAL*);
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*);
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage*,GDIPCONST GUID*,UINT*);
--
1.4.1
More information about the wine-patches
mailing list