gdiplus: Added GdipSetImagePalette stub.
This commit is contained in:
parent
b66c0a00d9
commit
c147389ff1
|
@ -532,7 +532,7 @@
|
|||
@ stub GdipSetImageAttributesThreshold
|
||||
@ stub GdipSetImageAttributesToIdentity
|
||||
@ stdcall GdipSetImageAttributesWrapMode(ptr long long long)
|
||||
@ stub GdipSetImagePalette
|
||||
@ stdcall GdipSetImagePalette(ptr ptr)
|
||||
@ stub GdipSetInfinite
|
||||
@ stdcall GdipSetInterpolationMode(ptr long)
|
||||
@ stub GdipSetLineBlend
|
||||
|
|
|
@ -668,3 +668,17 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream* stream,
|
|||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetImagePalette(GpImage *image,
|
||||
GDIPCONST ColorPalette *palette)
|
||||
{
|
||||
static int calls;
|
||||
|
||||
if(!image || !palette)
|
||||
return InvalidParameter;
|
||||
|
||||
if(!(calls++))
|
||||
FIXME("not implemented\n");
|
||||
|
||||
return NotImplemented;
|
||||
}
|
||||
|
|
|
@ -208,6 +208,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream*,GpImage**);
|
|||
GpStatus WINGDIPAPI GdipRemovePropertyItem(GpImage*,PROPID);
|
||||
GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage*,IStream*,
|
||||
GDIPCONST CLSID*,GDIPCONST EncoderParameters*);
|
||||
GpStatus WINGDIPAPI GdipSetImagePalette(GpImage*,GDIPCONST ColorPalette*);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes**);
|
||||
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes*);
|
||||
|
|
|
@ -48,4 +48,25 @@ typedef INT PixelFormat;
|
|||
#define PixelFormat64bppPARGB (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)
|
||||
#define PixelFormatMax 15
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
struct ColorPalette
|
||||
{
|
||||
public:
|
||||
UINT Flags;
|
||||
UINT Count;
|
||||
ARGB Entries[1];
|
||||
};
|
||||
|
||||
#else /* end of c++ typedefs */
|
||||
|
||||
typedef struct ColorPalette
|
||||
{
|
||||
UINT Flags;
|
||||
UINT Count;
|
||||
ARGB Entries[1];
|
||||
} ColorPalette;
|
||||
|
||||
#endif /* end of c typedefs */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue