Commit 65445b9e authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

gdiplus: Add a stub for GdipSetImageAttributesRemapTable.

parent f4575aaa
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
@ stdcall GdipSetImageAttributesNoOp(ptr long long) @ stdcall GdipSetImageAttributesNoOp(ptr long long)
@ stdcall GdipSetImageAttributesOutputChannel(ptr long long long) @ stdcall GdipSetImageAttributesOutputChannel(ptr long long long)
@ stdcall GdipSetImageAttributesOutputChannelColorProfile(ptr long long ptr) @ stdcall GdipSetImageAttributesOutputChannelColorProfile(ptr long long ptr)
@ stub GdipSetImageAttributesRemapTable @ stdcall GdipSetImageAttributesRemapTable(ptr long long long ptr)
@ stub GdipSetImageAttributesThreshold @ stub GdipSetImageAttributesThreshold
@ stub GdipSetImageAttributesToIdentity @ stub GdipSetImageAttributesToIdentity
@ stdcall GdipSetImageAttributesWrapMode(ptr long long long) @ stdcall GdipSetImageAttributesWrapMode(ptr long long long)
......
...@@ -146,3 +146,15 @@ GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttri ...@@ -146,3 +146,15 @@ GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttri
return NotImplemented; return NotImplemented;
} }
GpStatus WINGDIPAPI GdipSetImageAttributesRemapTable(GpImageAttributes *imageAttr,
ColorAdjustType type, BOOL enableFlag, UINT mapSize,
GDIPCONST ColorMap *map)
{
static int calls;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}
...@@ -28,7 +28,21 @@ enum ColorChannelFlags ...@@ -28,7 +28,21 @@ enum ColorChannelFlags
ColorChannelFlagsLast ColorChannelFlagsLast
}; };
#ifndef __cplusplus #ifdef __cplusplus
/* FIXME: missing the methods. */
class Color
{
protected:
ARGB Argb;
};
#else /* end of c++ typedefs */
typedef struct Color
{
ARGB Argb;
} Color;
typedef enum ColorChannelFlags ColorChannelFlags; typedef enum ColorChannelFlags ColorChannelFlags;
......
...@@ -42,11 +42,18 @@ enum ColorAdjustType ...@@ -42,11 +42,18 @@ enum ColorAdjustType
ColorAdjustTypeAny ColorAdjustTypeAny
}; };
struct ColorMap
{
Color oldColor;
Color newCOlor;
};
#ifndef __cplusplus #ifndef __cplusplus
typedef enum ColorAdjustType ColorAdjustType; typedef enum ColorAdjustType ColorAdjustType;
typedef enum ColorMatrixFlags ColorMatrixFlags; typedef enum ColorMatrixFlags ColorMatrixFlags;
typedef struct ColorMatrix ColorMatrix; typedef struct ColorMatrix ColorMatrix;
typedef struct ColorMap ColorMap;
#endif /* end of c typedefs */ #endif /* end of c typedefs */
......
...@@ -80,5 +80,6 @@ typedef DashStyle GpDashStyle; ...@@ -80,5 +80,6 @@ typedef DashStyle GpDashStyle;
typedef MatrixOrder GpMatrixOrder; typedef MatrixOrder GpMatrixOrder;
typedef Point GpPoint; typedef Point GpPoint;
typedef WrapMode GpWrapMode; typedef WrapMode GpWrapMode;
typedef Color GpColor;
#endif #endif
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