gdiplus: Added GdipSetImageAttributesColorMatrix stub.

This commit is contained in:
Evan Stade 2007-08-07 18:42:48 -07:00 committed by Alexandre Julliard
parent 02887b6c90
commit a93e61d377
4 changed files with 33 additions and 1 deletions

View File

@ -523,7 +523,7 @@
@ stub GdipSetEmpty
@ stub GdipSetImageAttributesCachedBackground
@ stdcall GdipSetImageAttributesColorKeys(ptr long long long long)
@ stub GdipSetImageAttributesColorMatrix
@ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long)
@ stub GdipSetImageAttributesGamma
@ stub GdipSetImageAttributesNoOp
@ stub GdipSetImageAttributesOutputChannel

View File

@ -62,6 +62,21 @@ GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr
return NotImplemented;
}
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr,
ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix* colorMatrix,
GDIPCONST ColorMatrix* grayMatrix, ColorMatrixFlags flags)
{
static int calls;
if(!imageattr || !colorMatrix || !grayMatrix)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes *imageAttr,
WrapMode wrap, ARGB argb, BOOL clamp)
{

View File

@ -19,6 +19,18 @@
#ifndef _GDIPLUSCOLORMATRIX_H
#define _GDIPLUSCOLORMATRIX_H
struct ColorMatrix
{
REAL m[5][5];
};
enum ColorMatrixFlags
{
ColorMatrixFlagsDefault = 0,
ColorMatrixFlagsSkipGrays = 1,
ColorMatrixFlagsAltGray = 2
};
enum ColorAdjustType
{
ColorAdjustTypeDefault,
@ -33,6 +45,8 @@ enum ColorAdjustType
#ifndef __cplusplus
typedef enum ColorAdjustType ColorAdjustType;
typedef enum ColorMatrixFlags ColorMatrixFlags;
typedef struct ColorMatrix ColorMatrix;
#endif /* end of c typedefs */

View File

@ -203,6 +203,9 @@ GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes**);
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes*);
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes*,
ColorAdjustType,BOOL,ARGB,ARGB);
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes*,
ColorAdjustType,BOOL,GDIPCONST ColorMatrix*,GDIPCONST ColorMatrix*,
ColorMatrixFlags);
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes*,WrapMode,
ARGB,BOOL);