/*
- Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
+ Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
#ifndef _MAGICKCORE_DRAW_H
#define _MAGICKCORE_DRAW_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/geometry.h"
#include "MagickCore/image.h"
#include "MagickCore/pixel.h"
#include "MagickCore/type.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
typedef enum
{
UndefinedAlign,
RepeatSpread
} SpreadMethod;
-typedef struct _PointInfo
-{
- double
- x,
- y;
-} PointInfo;
-
typedef struct _StopInfo
{
PixelInfo
color;
- MagickRealType
+ double
offset;
} StopInfo;
PointInfo
center;
- MagickRealType
+ double
radius;
} GradientInfo;
AffineMatrix
affine;
- GravityType
- gravity;
-
PixelInfo
fill,
- stroke;
+ stroke,
+ undercolor,
+ border_color;
+
+ Image
+ *fill_pattern,
+ *stroke_pattern;
double
stroke_width;
GradientInfo
gradient;
- Image
- *fill_pattern,
- *stroke_pattern;
-
MagickBooleanType
stroke_antialias,
text_antialias;
compose;
char
- *text;
-
- size_t
- face;
-
- char
+ *text,
*font,
*metrics,
*family;
+ size_t
+ face;
+
StyleType
style;
AlignType
align;
- PixelInfo
- undercolor,
- border_color;
+ GravityType
+ gravity;
char
*server_name;
ElementReference
element_reference;
- MagickBooleanType
- debug;
-
- size_t
- signature;
-
double
kerning,
interword_spacing,
DirectionType
direction;
+
+ MagickBooleanType
+ debug;
+
+ size_t
+ signature;
} DrawInfo;
+
typedef struct _PrimitiveInfo
{
PointInfo
*DestroyDrawInfo(DrawInfo *);
extern MagickExport MagickBooleanType
- DrawAffineImage(Image *,const Image *,const AffineMatrix *),
+ DrawAffineImage(Image *,const Image *,const AffineMatrix *,ExceptionInfo *),
DrawClipPath(Image *,const DrawInfo *,const char *,ExceptionInfo *),
- DrawGradientImage(Image *,const DrawInfo *),
+ DrawGradientImage(Image *,const DrawInfo *,ExceptionInfo *),
DrawImage(Image *,const DrawInfo *,ExceptionInfo *),
DrawPatternPath(Image *,const DrawInfo *,const char *,Image **,
ExceptionInfo *),
- DrawPrimitive(Image *,const DrawInfo *,const PrimitiveInfo *);
+ DrawPrimitive(Image *,const DrawInfo *,const PrimitiveInfo *,ExceptionInfo *);
extern MagickExport void
GetAffineMatrix(AffineMatrix *),