MagickWand  6.8.9
drawing-wand.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  http://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickWand drawing wand methods.
17 */
18 #ifndef _MAGICKWAND_DRAWING_WAND_H
19 #define _MAGICKWAND_DRAWING_WAND_H
20 
21 #include "wand/pixel-wand.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef struct _DrawingWand
29 
30 extern WandExport AlignType
32 
33 extern WandExport char
34  *DrawGetClipPath(const DrawingWand *),
35  *DrawGetException(const DrawingWand *,ExceptionType *),
36  *DrawGetFont(const DrawingWand *),
40 
41 extern WandExport ClipPathUnits
43 
44 extern WandExport DecorationType
46 
47 extern WandExport DirectionType
49 
50 extern WandExport double
53  DrawGetOpacity(const DrawingWand *),
54  *DrawGetStrokeDashArray(const DrawingWand *,size_t *),
61 
62 extern WandExport DrawInfo
63  *PeekDrawingWand(const DrawingWand *);
64 
66  *CloneDrawingWand(const DrawingWand *),
68  *DrawAllocateWand(const DrawInfo *,Image *),
69  *NewDrawingWand(void);
70 
71 extern WandExport ExceptionType
73 
74 extern WandExport FillRule
77 
78 extern WandExport GravityType
79  DrawGetGravity(const DrawingWand *);
80 
81 extern WandExport LineCap
83 
84 extern WandExport LineJoin
86 
87 extern WandExport MagickBooleanType
89  DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
90  const double,const double,MagickWand *),
91  DrawGetFontResolution(const DrawingWand *,double *,double *),
95  DrawPushPattern(DrawingWand *,const char *,const double,const double,
96  const double,const double),
98  DrawSetClipPath(DrawingWand *,const char *),
99  DrawSetFillPatternURL(DrawingWand *,const char *),
100  DrawSetFont(DrawingWand *,const char *),
101  DrawSetFontFamily(DrawingWand *,const char *),
102  DrawSetFontResolution(DrawingWand *,const double,const double),
103  DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
104  DrawSetStrokePatternURL(DrawingWand *,const char *),
105  DrawSetVectorGraphics(DrawingWand *,const char *),
106  IsDrawingWand(const DrawingWand *),
109 
110 extern WandExport StretchType
112 
113 extern WandExport StyleType
114  DrawGetFontStyle(const DrawingWand *);
115 
116 extern WandExport size_t
119 
120 extern WandExport void
122  DrawAffine(DrawingWand *,const AffineMatrix *),
123  DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *),
124  DrawArc(DrawingWand *,const double,const double,const double,const double,
125  const double,const double),
126  DrawBezier(DrawingWand *,const size_t,const PointInfo *),
128  DrawCircle(DrawingWand *,const double,const double,const double,const double),
129  DrawColor(DrawingWand *,const double,const double,const PaintMethod),
130  DrawComment(DrawingWand *,const char *),
131  DrawEllipse(DrawingWand *,const double,const double,const double,const double,
132  const double,const double),
135  DrawSetTextKerning(DrawingWand *,const double),
139  DrawLine(DrawingWand *,const double, const double,const double,const double),
140  DrawMatte(DrawingWand *,const double,const double,const PaintMethod),
142  DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double,
143  const double,const double,const double),
144  DrawPathCurveToRelative(DrawingWand *,const double,const double,const double,
145  const double,const double, const double),
147  const double,const double,const double),
149  const double,const double,const double),
151  const double),
153  const double),
154  DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double,
155  const double,const double),
156  DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double,
157  const double,const double),
158  DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double,
159  const double,const MagickBooleanType,const MagickBooleanType,const double,
160  const double),
161  DrawPathEllipticArcRelative(DrawingWand *,const double,const double,
162  const double,const MagickBooleanType,const MagickBooleanType,const double,
163  const double),
165  DrawPathLineToAbsolute(DrawingWand *,const double,const double),
166  DrawPathLineToRelative(DrawingWand *,const double,const double),
171  DrawPathMoveToAbsolute(DrawingWand *,const double,const double),
172  DrawPathMoveToRelative(DrawingWand *,const double,const double),
174  DrawPoint(DrawingWand *,const double,const double),
175  DrawPolygon(DrawingWand *,const size_t,const PointInfo *),
176  DrawPolyline(DrawingWand *,const size_t,const PointInfo *),
179  DrawPushClipPath(DrawingWand *,const char *),
181  DrawRectangle(DrawingWand *,const double,const double,const double,
182  const double),
184  DrawRotate(DrawingWand *,const double),
185  DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double),
186  DrawScale(DrawingWand *,const double,const double),
188  DrawSetClipRule(DrawingWand *,const FillRule),
189  DrawSetClipUnits(DrawingWand *,const ClipPathUnits),
191  DrawSetFillOpacity(DrawingWand *,const double),
192  DrawSetFillRule(DrawingWand *,const FillRule),
193  DrawSetFontSize(DrawingWand *,const double),
194  DrawSetFontStretch(DrawingWand *,const StretchType),
195  DrawSetFontStyle(DrawingWand *,const StyleType),
196  DrawSetFontWeight(DrawingWand *,const size_t),
197  DrawSetGravity(DrawingWand *,const GravityType),
198  DrawSetOpacity(DrawingWand *,const double),
199  DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
201  DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
202  DrawSetStrokeLineCap(DrawingWand *,const LineCap),
203  DrawSetStrokeLineJoin(DrawingWand *,const LineJoin),
204  DrawSetStrokeMiterLimit(DrawingWand *,const size_t),
205  DrawSetStrokeOpacity(DrawingWand *, const double),
206  DrawSetStrokeWidth(DrawingWand *,const double),
207  DrawSetTextAlignment(DrawingWand *,const AlignType),
208  DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
209  DrawSetTextDecoration(DrawingWand *,const DecorationType),
210  DrawSetTextDirection(DrawingWand *,const DirectionType),
211  DrawSetTextEncoding(DrawingWand *,const char *),
213  DrawSetViewbox(DrawingWand *,ssize_t,ssize_t,ssize_t,ssize_t),
214  DrawSkewX(DrawingWand *,const double),
215  DrawSkewY(DrawingWand *,const double),
216  DrawTranslate(DrawingWand *,const double,const double);
217 
218 #if defined(__cplusplus) || defined(c_plusplus)
219 }
220 #endif
221 
222 #endif
WandExport void DrawSkewY(DrawingWand *, const double)
WandExport MagickBooleanType DrawGetTextAntialias(const DrawingWand *)
WandExport void DrawRotate(DrawingWand *, const double)
WandExport void DrawSetGravity(DrawingWand *, const GravityType)
WandExport MagickBooleanType DrawClearException(DrawingWand *)
WandExport void DrawPathLineToHorizontalAbsolute(DrawingWand *, const double)
WandExport void DrawGetFillColor(const DrawingWand *, PixelWand *)
WandExport char * DrawGetException(const DrawingWand *, ExceptionType *)
WandExport void DrawGetBorderColor(const DrawingWand *, PixelWand *)
WandExport void DrawPoint(DrawingWand *, const double, const double)
WandExport void DrawAffine(DrawingWand *, const AffineMatrix *)
WandExport void DrawSetStrokeColor(DrawingWand *, const PixelWand *)
WandExport void DrawSetFontStyle(DrawingWand *, const StyleType)
WandExport MagickBooleanType DrawSetFillPatternURL(DrawingWand *, const char *)
WandExport void DrawEllipse(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawSetFontStretch(DrawingWand *, const StretchType)
WandExport void DrawPathLineToVerticalAbsolute(DrawingWand *, const double)
WandExport double DrawGetOpacity(const DrawingWand *)
WandExport void ClearDrawingWand(DrawingWand *)
WandExport void DrawComment(DrawingWand *, const char *)
WandExport void DrawResetVectorGraphics(DrawingWand *)
WandExport LineJoin DrawGetStrokeLineJoin(const DrawingWand *)
Definition: drawing-wand.c:2061
WandExport LineCap DrawGetStrokeLineCap(const DrawingWand *)
Definition: drawing-wand.c:2027
WandExport void DrawPushClipPath(DrawingWand *, const char *)
WandExport void DrawPathEllipticArcAbsolute(DrawingWand *, const double, const double, const double, const MagickBooleanType, const MagickBooleanType, const double, const double)
WandExport void DrawPathFinish(DrawingWand *)
WandExport double DrawGetTextInterlineSpacing(DrawingWand *)
WandExport void DrawPolyline(DrawingWand *, const size_t, const PointInfo *)
WandExport void DrawGetTextUnderColor(const DrawingWand *, PixelWand *)
WandExport void DrawBezier(DrawingWand *, const size_t, const PointInfo *)
WandExport MagickBooleanType DrawPushPattern(DrawingWand *, const char *, const double, const double, const double, const double)
WandExport double DrawGetStrokeWidth(const DrawingWand *)
WandExport MagickBooleanType DrawGetFontResolution(const DrawingWand *, double *, double *)
WandExport ExceptionType DrawGetExceptionType(const DrawingWand *)
Definition: drawing-wand.c:1403
WandExport void DrawSetFillOpacity(DrawingWand *, const double)
WandExport DrawInfo * PeekDrawingWand(const DrawingWand *)
Definition: drawing-wand.c:6796
WandExport void DrawPathLineToRelative(DrawingWand *, const double, const double)
WandExport void DrawSetOpacity(DrawingWand *, const double)
WandExport void DrawRectangle(DrawingWand *, const double, const double, const double, const double)
#define WandExport
Definition: method-attribute.h:92
WandExport char * DrawGetFontFamily(const DrawingWand *)
WandExport void DrawSetStrokeMiterLimit(DrawingWand *, const size_t)
WandExport double DrawGetFillOpacity(const DrawingWand *)
WandExport MagickBooleanType DrawSetFontResolution(DrawingWand *, const double, const double)
WandExport void DrawSetFillColor(DrawingWand *, const PixelWand *)
WandExport StyleType DrawGetFontStyle(const DrawingWand *)
Definition: drawing-wand.c:1720
WandExport MagickBooleanType PopDrawingWand(DrawingWand *)
WandExport void DrawSkewX(DrawingWand *, const double)
Definition: pixel-wand.c:63
WandExport void DrawSetBorderColor(DrawingWand *, const PixelWand *)
WandExport void DrawArc(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawSetTextEncoding(DrawingWand *, const char *)
WandExport char * DrawGetVectorGraphics(DrawingWand *)
Definition: drawing-wand.c:2469
WandExport void DrawPathCurveToRelative(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawColor(DrawingWand *, const double, const double, const PaintMethod)
WandExport void DrawPopClipPath(DrawingWand *)
WandExport StretchType DrawGetFontStretch(const DrawingWand *)
Definition: drawing-wand.c:1689
WandExport void DrawSetStrokeLineCap(DrawingWand *, const LineCap)
WandExport void DrawSetStrokeLineJoin(DrawingWand *, const LineJoin)
WandExport GravityType DrawGetGravity(const DrawingWand *)
Definition: drawing-wand.c:1783
Definition: magick-wand-private.h:50
WandExport void DrawPathMoveToRelative(DrawingWand *, const double, const double)
WandExport double DrawGetFontSize(const DrawingWand *)
WandExport void DrawPushDefs(DrawingWand *)
WandExport DrawingWand * DestroyDrawingWand(DrawingWand *)
WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *, const size_t, const double *)
WandExport void DrawSetFillRule(DrawingWand *, const FillRule)
WandExport void DrawRoundRectangle(DrawingWand *, double, double, double, double, double, double)
WandExport void DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *, const double, const double)
WandExport void DrawLine(DrawingWand *, const double, const double, const double, const double)
WandExport FillRule DrawGetFillRule(const DrawingWand *)
Definition: drawing-wand.c:1505
WandExport void DrawMatte(DrawingWand *, const double, const double, const PaintMethod)
WandExport MagickBooleanType DrawSetVectorGraphics(DrawingWand *, const char *)
WandExport void DrawPathMoveToAbsolute(DrawingWand *, const double, const double)
WandExport void DrawSetTextDecoration(DrawingWand *, const DecorationType)
WandExport void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawPathEllipticArcRelative(DrawingWand *, const double, const double, const double, const MagickBooleanType, const MagickBooleanType, const double, const double)
WandExport MagickBooleanType DrawSetFontFamily(DrawingWand *, const char *)
WandExport MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *)
WandExport DirectionType DrawGetTextDirection(const DrawingWand *)
Definition: drawing-wand.c:2291
WandExport void DrawSetFontSize(DrawingWand *, const double)
WandExport void DrawSetStrokeAntialias(DrawingWand *, const MagickBooleanType)
WandExport void DrawSetTextInterwordSpacing(DrawingWand *, const double)
WandExport size_t DrawGetFontWeight(const DrawingWand *)
WandExport void DrawPathCurveToAbsolute(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawSetStrokeOpacity(DrawingWand *, const double)
WandExport void DrawSetTextUnderColor(DrawingWand *, const PixelWand *)
WandExport double DrawGetStrokeOpacity(const DrawingWand *)
WandExport double DrawGetTextKerning(DrawingWand *)
WandExport void DrawGetStrokeColor(const DrawingWand *, PixelWand *)
WandExport void DrawTranslate(DrawingWand *, const double, const double)
Definition: drawing-wand.c:6614
WandExport void DrawSetViewbox(DrawingWand *, ssize_t, ssize_t, ssize_t, ssize_t)
WandExport char * DrawGetTextEncoding(const DrawingWand *)
WandExport AlignType DrawGetTextAlignment(const DrawingWand *)
Definition: drawing-wand.c:2195
WandExport void DrawPathLineToHorizontalRelative(DrawingWand *, const double)
WandExport double * DrawGetStrokeDashArray(const DrawingWand *, size_t *)
WandExport DrawingWand * CloneDrawingWand(const DrawingWand *)
WandExport MagickBooleanType IsDrawingWand(const DrawingWand *)
WandExport void DrawPathLineToAbsolute(DrawingWand *, const double, const double)
WandExport double DrawGetTextInterwordSpacing(DrawingWand *)
Definition: drawing-wand.c:2420
WandExport void DrawSetTextAntialias(DrawingWand *, const MagickBooleanType)
WandExport MagickBooleanType DrawRender(DrawingWand *)
WandExport void DrawPathCurveToSmoothAbsolute(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *, const double, const double)
WandExport void DrawPathCurveToSmoothRelative(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawSetTextInterlineSpacing(DrawingWand *, const double)
WandExport DrawingWand * DrawAllocateWand(const DrawInfo *, Image *)
WandExport void DrawAnnotation(DrawingWand *, const double, const double, const unsigned char *)
WandExport char * DrawGetClipPath(const DrawingWand *)
WandExport void DrawSetTextKerning(DrawingWand *, const double)
WandExport DrawingWand * NewDrawingWand(void)
Definition: drawing-wand.c:6721
WandExport void DrawSetTextAlignment(DrawingWand *, const AlignType)
WandExport double DrawGetStrokeDashOffset(const DrawingWand *)
WandExport void DrawPathStart(DrawingWand *)
Definition: drawing-wand.c:90
WandExport DecorationType DrawGetTextDecoration(const DrawingWand *)
Definition: drawing-wand.c:2259
WandExport size_t DrawGetStrokeMiterLimit(const DrawingWand *)
Definition: drawing-wand.c:2096
WandExport FillRule DrawGetClipRule(const DrawingWand *)
WandExport void DrawPathCurveToQuadraticBezierRelative(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawPathLineToVerticalRelative(DrawingWand *, const double)
WandExport void DrawSetStrokeWidth(DrawingWand *, const double)
WandExport MagickBooleanType DrawSetClipPath(DrawingWand *, const char *)
WandExport void DrawSetClipRule(DrawingWand *, const FillRule)
WandExport MagickBooleanType DrawComposite(DrawingWand *, const CompositeOperator, const double, const double, const double, const double, MagickWand *)
WandExport void DrawCircle(DrawingWand *, const double, const double, const double, const double)
WandExport ClipPathUnits DrawGetClipUnits(const DrawingWand *)
Definition: drawing-wand.c:1312
WandExport void DrawSetClipUnits(DrawingWand *, const ClipPathUnits)
WandExport MagickBooleanType PushDrawingWand(DrawingWand *)
Definition: drawing-wand.c:6891
WandExport MagickBooleanType DrawSetStrokePatternURL(DrawingWand *, const char *)
WandExport char * DrawGetFont(const DrawingWand *)
WandExport void DrawSetStrokeDashOffset(DrawingWand *, const double dashoffset)
WandExport void DrawPopDefs(DrawingWand *)
WandExport void DrawPathClose(DrawingWand *)
WandExport MagickBooleanType DrawPopPattern(DrawingWand *)
WandExport void DrawSetTextDirection(DrawingWand *, const DirectionType)
WandExport void DrawScale(DrawingWand *, const double, const double)
WandExport MagickBooleanType DrawSetFont(DrawingWand *, const char *)
WandExport void DrawPolygon(DrawingWand *, const size_t, const PointInfo *)
WandExport void DrawSetFontWeight(DrawingWand *, const size_t)