gdiplus: Added GdipSetImageAttributesColorMatrix stub.
This commit is contained in:
parent
02887b6c90
commit
a93e61d377
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue