gdiplus: Added GdipSetImageAttributesColorKeys stub.

This commit is contained in:
Evan Stade 2007-07-31 19:16:16 -07:00 committed by Alexandre Julliard
parent 2b4b23cfa0
commit fcbb211155
6 changed files with 59 additions and 1 deletions

View File

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

View File

@ -48,6 +48,20 @@ GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)
return Ok;
}
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr,
ColorAdjustType type, BOOL enableFlag, ARGB colorLow, ARGB colorHigh)
{
static int calls;
if(!imageattr)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes *imageAttr,
WrapMode wrap, ARGB argb, BOOL clamp)
{

View File

@ -164,6 +164,7 @@ SRCDIR_INCLUDES = \
fci.h \
fdi.h \
gdiplus.h \
gdipluscolormatrix.h \
gdiplusenums.h \
gdiplusflat.h \
gdiplusgpstubs.h \

View File

@ -34,6 +34,7 @@ namespace Gdiplus
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
#include "gdipluscolormatrix.h"
#include "gdiplusgpstubs.h"
namespace DllExports
@ -52,6 +53,7 @@ namespace Gdiplus
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
#include "gdipluscolormatrix.h"
#include "gdiplusgpstubs.h"
#include "gdiplusflat.h"

View File

@ -0,0 +1,39 @@
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _GDIPLUSCOLORMATRIX_H
#define _GDIPLUSCOLORMATRIX_H
enum ColorAdjustType
{
ColorAdjustTypeDefault,
ColorAdjustTypeBitmap,
ColorAdjustTypeBrush,
ColorAdjustTypePen,
ColorAdjustTypeText,
ColorAdjustTypeCount,
ColorAdjustTypeAny
};
#ifndef __cplusplus
typedef enum ColorAdjustType ColorAdjustType;
#endif /* end of c typedefs */
#endif /* _GDIPLUSCOLORMATRIX_H */

View File

@ -160,6 +160,8 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage*,IStream*,
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes**);
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes*);
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes*,
ColorAdjustType,BOOL,ARGB,ARGB);
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes*,WrapMode,
ARGB,BOOL);