From 65445b9e7ebf77b4b24bda687249a67091152512 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 10 Apr 2008 12:40:13 -0700 Subject: [PATCH] gdiplus: Add a stub for GdipSetImageAttributesRemapTable. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/imageattributes.c | 12 ++++++++++++ include/gdipluscolor.h | 16 +++++++++++++++- include/gdipluscolormatrix.h | 7 +++++++ include/gdiplusgpstubs.h | 1 + 5 files changed, 36 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 8157f4ffe66..349e10ff8e9 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -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) diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c index b74fc667aa3..f4cecbe767e 100644 --- a/dlls/gdiplus/imageattributes.c +++ b/dlls/gdiplus/imageattributes.c @@ -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; +} diff --git a/include/gdipluscolor.h b/include/gdipluscolor.h index 5c8e53f9257..39b7cb6debd 100644 --- a/include/gdipluscolor.h +++ b/include/gdipluscolor.h @@ -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; diff --git a/include/gdipluscolormatrix.h b/include/gdipluscolormatrix.h index afc04c0076a..532e8f4c788 100644 --- a/include/gdipluscolormatrix.h +++ b/include/gdipluscolormatrix.h @@ -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 */ diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h index d7d8702087b..9f7d092ecdd 100644 --- a/include/gdiplusgpstubs.h +++ b/include/gdiplusgpstubs.h @@ -80,5 +80,6 @@ typedef DashStyle GpDashStyle; typedef MatrixOrder GpMatrixOrder; typedef Point GpPoint; typedef WrapMode GpWrapMode; +typedef Color GpColor; #endif