Evan Stade : gdiplus: Added GdipGetImageType stub.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 25 07:44:21 CDT 2007
Module: wine
Branch: master
Commit: 8770b6e8215d98fd0eb31189d639dc8044e3b621
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8770b6e8215d98fd0eb31189d639dc8044e3b621
Author: Evan Stade <estade at gmail.com>
Date: Tue Jul 24 17:19:12 2007 -0700
gdiplus: Added GdipGetImageType 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(-)
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 GdipGetImageRawFormat(GpImage *image, GUID *format)
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 PixelOffsetMode;
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 GdipDeleteCustomLineCap(GpCustomLineCap*);
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*);
More information about the wine-cvs
mailing list