Commit ea96cd3a authored by Luke Benstead's avatar Luke Benstead Committed by Alexandre Julliard

gdiplus: Implement stub for GdipGetImagePalette.

parent ab6ee61b
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
@ stdcall GdipGetImageHeight(ptr ptr) @ stdcall GdipGetImageHeight(ptr ptr)
@ stdcall GdipGetImageHorizontalResolution(ptr ptr) @ stdcall GdipGetImageHorizontalResolution(ptr ptr)
@ stub GdipGetImageItemData @ stub GdipGetImageItemData
@ stub GdipGetImagePalette @ stdcall GdipGetImagePalette(ptr ptr long)
@ stdcall GdipGetImagePaletteSize(ptr ptr) @ stdcall GdipGetImagePaletteSize(ptr ptr)
@ stdcall GdipGetImagePixelFormat(ptr ptr) @ stdcall GdipGetImagePixelFormat(ptr ptr)
@ stdcall GdipGetImageRawFormat(ptr ptr) @ stdcall GdipGetImageRawFormat(ptr ptr)
......
...@@ -1458,6 +1458,22 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream* stream, ...@@ -1458,6 +1458,22 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream* stream,
} }
/***************************************************************************** /*****************************************************************************
* GdipGetImagePalette [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipGetImagePalette(GpImage *image, ColorPalette *palette, INT size)
{
static int calls = 0;
if(!image)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}
/*****************************************************************************
* GdipSetImagePalette [GDIPLUS.@] * GdipSetImagePalette [GDIPLUS.@]
*/ */
GpStatus WINGDIPAPI GdipSetImagePalette(GpImage *image, GpStatus WINGDIPAPI GdipSetImagePalette(GpImage *image,
......
...@@ -346,6 +346,7 @@ GpStatus WINGDIPAPI GdipGetImageFlags(GpImage*,UINT*); ...@@ -346,6 +346,7 @@ GpStatus WINGDIPAPI GdipGetImageFlags(GpImage*,UINT*);
GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*);
GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*);
GpStatus WINGDIPAPI GdipGetImageItemData(GpImage*,ImageItemData*); GpStatus WINGDIPAPI GdipGetImageItemData(GpImage*,ImageItemData*);
GpStatus WINGDIPAPI GdipGetImagePalette(GpImage*,ColorPalette*,INT);
GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage*,PixelFormat*); GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage*,PixelFormat*);
GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*); GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);
GpStatus WINGDIPAPI GdipGetImageThumbnail(GpImage*,UINT,UINT,GpImage**,GetThumbnailImageAbort,VOID*); GpStatus WINGDIPAPI GdipGetImageThumbnail(GpImage*,UINT,UINT,GpImage**,GetThumbnailImageAbort,VOID*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment