gdiplus: Add a stub for GdipSetImageAttributesRemapTable.

This commit is contained in:
Lei Zhang 2008-04-10 12:40:13 -07:00 committed by Alexandre Julliard
parent f4575aaa5f
commit 65445b9e7e
5 changed files with 36 additions and 2 deletions

View File

@ -528,7 +528,7 @@
@ stdcall GdipSetImageAttributesNoOp(ptr long long)
@ stdcall GdipSetImageAttributesOutputChannel(ptr long long long)
@ stdcall GdipSetImageAttributesOutputChannelColorProfile(ptr long long ptr)
@ stub GdipSetImageAttributesRemapTable
@ stdcall GdipSetImageAttributesRemapTable(ptr long long long ptr)
@ stub GdipSetImageAttributesThreshold
@ stub GdipSetImageAttributesToIdentity
@ stdcall GdipSetImageAttributesWrapMode(ptr long long long)

View File

@ -146,3 +146,15 @@ GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttri
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;
}

View File

@ -28,7 +28,21 @@ enum ColorChannelFlags
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;

View File

@ -42,11 +42,18 @@ enum ColorAdjustType
ColorAdjustTypeAny
};
struct ColorMap
{
Color oldColor;
Color newCOlor;
};
#ifndef __cplusplus
typedef enum ColorAdjustType ColorAdjustType;
typedef enum ColorMatrixFlags ColorMatrixFlags;
typedef struct ColorMatrix ColorMatrix;
typedef struct ColorMap ColorMap;
#endif /* end of c typedefs */

View File

@ -80,5 +80,6 @@ typedef DashStyle GpDashStyle;
typedef MatrixOrder GpMatrixOrder;
typedef Point GpPoint;
typedef WrapMode GpWrapMode;
typedef Color GpColor;
#endif