gdiplus: Added GdipGetImageType stub.

This commit is contained in:
Evan Stade 2007-07-24 17:19:12 -07:00 committed by Alexandre Julliard
parent b0acdb8389
commit 8770b6e821
4 changed files with 23 additions and 1 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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 */

View File

@ -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*);