gdiplus: Added ImageAttributes stubs.

This commit is contained in:
Evan Stade 2007-07-30 19:09:41 -07:00 committed by Alexandre Julliard
parent a0b144a1e3
commit 5dd5825484
6 changed files with 86 additions and 3 deletions

View File

@ -14,6 +14,7 @@ C_SRCS = \
graphics.c \
graphicspath.c \
image.c \
imageattributes.c \
matrix.c \
pathiterator.c \
pen.c

View File

@ -88,7 +88,7 @@
@ stub GdipCreateHICONFromBitmap
@ stub GdipCreateHalftonePalette
@ stub GdipCreateHatchBrush
@ stub GdipCreateImageAttributes
@ stdcall GdipCreateImageAttributes(ptr)
@ stub GdipCreateLineBrush
@ stub GdipCreateLineBrushFromRect
@ stub GdipCreateLineBrushFromRectI
@ -141,7 +141,7 @@
@ stub GdipDeleteRegion
@ stub GdipDeleteStringFormat
@ stdcall GdipDisposeImage(ptr)
@ stub GdipDisposeImageAttributes
@ stdcall GdipDisposeImageAttributes(ptr)
@ stdcall GdipDrawArc(ptr ptr long long long long long long)
@ stub GdipDrawArcI
@ stdcall GdipDrawBezier(ptr ptr long long long long long long long long)
@ -510,7 +510,7 @@
@ stub GdipSetImageAttributesRemapTable
@ stub GdipSetImageAttributesThreshold
@ stub GdipSetImageAttributesToIdentity
@ stub GdipSetImageAttributesWrapMode
@ stdcall GdipSetImageAttributesWrapMode(ptr long long long)
@ stub GdipSetImagePalette
@ stub GdipSetInfinite
@ stdcall GdipSetInterpolationMode(ptr long)

View File

@ -0,0 +1,65 @@
/*
* 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
*/
#include "windef.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)
{
static int calls;
if(!imageattr)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)
{
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)
{
static int calls;
if(!imageAttr)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
return NotImplemented;
}

View File

@ -164,6 +164,15 @@ enum ImageType
ImageTypeMetafile
};
enum WrapMode
{
WrapModeTile,
WrapModeTileFlipX,
WrapModeTileFlipY,
WrapModeTileFlipXY,
WrapModeClamp
};
#ifndef __cplusplus
typedef enum Unit Unit;
@ -181,6 +190,7 @@ typedef enum DashCap DashCap;
typedef enum DashStyle DashStyle;
typedef enum MatrixOrder MatrixOrder;
typedef enum ImageType ImageType;
typedef enum WrapMode WrapMode;
#endif /* end of c typedefs */

View File

@ -141,6 +141,11 @@ GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage*,REAL*);
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*);
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage*,GDIPCONST GUID*,UINT*);
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes**);
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes*);
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes*,WrapMode,
ARGB,BOOL);
#ifdef __cplusplus
}
#endif

View File

@ -31,6 +31,7 @@ class GpPathIterator {};
class GpCustomLineCap {};
class GpImage {};
class GpMetafile : public GpImage {};
class GpImageAttributes {};
#else /* end of c++ declarations */
@ -44,6 +45,7 @@ typedef struct GpPathIterator GpPathIterator;
typedef struct GpCustomLineCap GpCustomLineCap;
typedef struct GpImage GpImage;
typedef struct GpMetafile GpMetafile;
typedef struct GpImageAttributes GpImageAttributes;
#endif /* end of c declarations */