gdiplus: Added GdipSetImageAttributesColorKeys stub.
This commit is contained in:
parent
2b4b23cfa0
commit
fcbb211155
|
@ -522,7 +522,7 @@
|
|||
@ stub GdipSetEffectParameters
|
||||
@ stub GdipSetEmpty
|
||||
@ stub GdipSetImageAttributesCachedBackground
|
||||
@ stub GdipSetImageAttributesColorKeys
|
||||
@ stdcall GdipSetImageAttributesColorKeys(ptr long long long)
|
||||
@ stub GdipSetImageAttributesColorMatrix
|
||||
@ stub GdipSetImageAttributesGamma
|
||||
@ stub GdipSetImageAttributesNoOp
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -164,6 +164,7 @@ SRCDIR_INCLUDES = \
|
|||
fci.h \
|
||||
fdi.h \
|
||||
gdiplus.h \
|
||||
gdipluscolormatrix.h \
|
||||
gdiplusenums.h \
|
||||
gdiplusflat.h \
|
||||
gdiplusgpstubs.h \
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 */
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue