2 * Copyright (C) 2007 Google (Evan Stade)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #include "gdiplus_private.h"
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(gdiplus
);
30 GpStatus WINGDIPAPI
GdipCloneImageAttributes(GDIPCONST GpImageAttributes
*imageattr
,
31 GpImageAttributes
**cloneImageattr
)
33 TRACE("(%p, %p)\n", imageattr
, cloneImageattr
);
35 if(!imageattr
|| !cloneImageattr
)
36 return InvalidParameter
;
38 **cloneImageattr
= *imageattr
;
43 GpStatus WINGDIPAPI
GdipCreateImageAttributes(GpImageAttributes
**imageattr
)
45 TRACE("(%p)\n", imageattr
);
48 return InvalidParameter
;
50 *imageattr
= GdipAlloc(sizeof(GpImageAttributes
));
51 if(!*imageattr
) return OutOfMemory
;
56 GpStatus WINGDIPAPI
GdipDisposeImageAttributes(GpImageAttributes
*imageattr
)
58 TRACE("(%p)\n", imageattr
);
61 return InvalidParameter
;
68 GpStatus WINGDIPAPI
GdipSetImageAttributesColorKeys(GpImageAttributes
*imageattr
,
69 ColorAdjustType type
, BOOL enableFlag
, ARGB colorLow
, ARGB colorHigh
)
71 TRACE("(%p,%u,%i,%08x,%08x)\n", imageattr
, type
, enableFlag
, colorLow
, colorHigh
);
73 if(!imageattr
|| type
>= ColorAdjustTypeCount
)
74 return InvalidParameter
;
76 imageattr
->colorkeys
[type
].enabled
= enableFlag
;
77 imageattr
->colorkeys
[type
].low
= colorLow
;
78 imageattr
->colorkeys
[type
].high
= colorHigh
;
83 GpStatus WINGDIPAPI
GdipSetImageAttributesColorMatrix(GpImageAttributes
*imageattr
,
84 ColorAdjustType type
, BOOL enableFlag
, GDIPCONST ColorMatrix
* colorMatrix
,
85 GDIPCONST ColorMatrix
* grayMatrix
, ColorMatrixFlags flags
)
89 if(!imageattr
|| !colorMatrix
|| !grayMatrix
)
90 return InvalidParameter
;
93 FIXME("not implemented\n");
95 return NotImplemented
;
98 GpStatus WINGDIPAPI
GdipSetImageAttributesWrapMode(GpImageAttributes
*imageAttr
,
99 WrapMode wrap
, ARGB argb
, BOOL clamp
)
104 return InvalidParameter
;
107 FIXME("not implemented\n");
109 return NotImplemented
;
112 GpStatus WINGDIPAPI
GdipSetImageAttributesCachedBackground(GpImageAttributes
*imageAttr
,
118 FIXME("not implemented\n");
120 return NotImplemented
;
123 GpStatus WINGDIPAPI
GdipSetImageAttributesGamma(GpImageAttributes
*imageAttr
,
124 ColorAdjustType type
, BOOL enableFlag
, REAL gamma
)
129 FIXME("not implemented\n");
131 return NotImplemented
;
134 GpStatus WINGDIPAPI
GdipSetImageAttributesNoOp(GpImageAttributes
*imageAttr
,
135 ColorAdjustType type
, BOOL enableFlag
)
140 FIXME("not implemented\n");
142 return NotImplemented
;
145 GpStatus WINGDIPAPI
GdipSetImageAttributesOutputChannel(GpImageAttributes
*imageAttr
,
146 ColorAdjustType type
, BOOL enableFlag
, ColorChannelFlags channelFlags
)
151 FIXME("not implemented\n");
153 return NotImplemented
;
156 GpStatus WINGDIPAPI
GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes
*imageAttr
,
157 ColorAdjustType type
, BOOL enableFlag
,
158 GDIPCONST WCHAR
*colorProfileFilename
)
163 FIXME("not implemented\n");
165 return NotImplemented
;
168 GpStatus WINGDIPAPI
GdipSetImageAttributesRemapTable(GpImageAttributes
*imageAttr
,
169 ColorAdjustType type
, BOOL enableFlag
, UINT mapSize
,
170 GDIPCONST ColorMap
*map
)
175 FIXME("not implemented\n");
177 return NotImplemented
;
180 GpStatus WINGDIPAPI
GdipSetImageAttributesThreshold(GpImageAttributes
*imageAttr
,
181 ColorAdjustType type
, BOOL enableFlag
, REAL threshold
)
186 FIXME("not implemented\n");
188 return NotImplemented
;
191 GpStatus WINGDIPAPI
GdipSetImageAttributesToIdentity(GpImageAttributes
*imageAttr
,
192 ColorAdjustType type
)
197 FIXME("not implemented\n");
199 return NotImplemented
;