Commit 5dd58254 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added ImageAttributes stubs.

parent a0b144a1
......@@ -14,6 +14,7 @@ C_SRCS = \
graphics.c \
graphicspath.c \
image.c \
imageattributes.c \
matrix.c \
pathiterator.c \
pen.c
......
......@@ -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)
......
/*
* 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;
}
......@@ -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 */
......
......@@ -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
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment