MagickWand  6.9.10
Convert, Edit, Or Compose Bitmap Images
drawing-wand.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 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  https://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  *DrawGetDensity(const DrawingWand *),
36  *DrawGetException(const DrawingWand *,ExceptionType *),
37  *DrawGetFont(const DrawingWand *),
41 
42 extern WandExport ClipPathUnits
44 
45 extern WandExport DecorationType
47 
48 extern WandExport DirectionType
50 
51 extern WandExport double
54  DrawGetOpacity(const DrawingWand *),
55  *DrawGetStrokeDashArray(const DrawingWand *,size_t *),
62 
63 extern WandExport DrawInfo
64  *PeekDrawingWand(const DrawingWand *);
65 
67  *AcquireDrawingWand(const DrawInfo *,Image *),
68  *CloneDrawingWand(const DrawingWand *),
70  *NewDrawingWand(void);
71 
72 extern WandExport ExceptionType
74 
75 extern WandExport FillRule
78 
79 extern WandExport GravityType
80  DrawGetGravity(const DrawingWand *);
81 
82 extern WandExport LineCap
84 
85 extern WandExport LineJoin
87 
88 extern WandExport MagickBooleanType
90  DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
91  const double,const double,MagickWand *),
92  DrawGetFontResolution(const DrawingWand *,double *,double *),
96  DrawPushPattern(DrawingWand *,const char *,const double,const double,
97  const double,const double),
99  DrawSetClipPath(DrawingWand *,const char *),
100  DrawSetDensity(DrawingWand *,const char *),
101  DrawSetFillPatternURL(DrawingWand *,const char *),
102  DrawSetFont(DrawingWand *,const char *),
103  DrawSetFontFamily(DrawingWand *,const char *),
104  DrawSetFontResolution(DrawingWand *,const double,const double),
105  DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
106  DrawSetStrokePatternURL(DrawingWand *,const char *),
107  DrawSetVectorGraphics(DrawingWand *,const char *),
108  IsDrawingWand(const DrawingWand *),
111 
112 extern WandExport StretchType
114 
115 extern WandExport StyleType
116  DrawGetFontStyle(const DrawingWand *);
117 
118 extern WandExport size_t
121 
122 extern WandExport void
124  DrawAffine(DrawingWand *,const AffineMatrix *),
125  DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *),
126  DrawArc(DrawingWand *,const double,const double,const double,const double,
127  const double,const double),
128  DrawBezier(DrawingWand *,const size_t,const PointInfo *),
130  DrawCircle(DrawingWand *,const double,const double,const double,const double),
131  DrawColor(DrawingWand *,const double,const double,const PaintMethod),
132  DrawComment(DrawingWand *,const char *),
133  DrawEllipse(DrawingWand *,const double,const double,const double,const double,
134  const double,const double),
137  DrawSetTextKerning(DrawingWand *,const double),
141  DrawLine(DrawingWand *,const double, const double,const double,const double),
142  DrawMatte(DrawingWand *,const double,const double,const PaintMethod),
144  DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double,
145  const double,const double,const double),
146  DrawPathCurveToRelative(DrawingWand *,const double,const double,const double,
147  const double,const double, const double),
149  const double,const double,const double),
151  const double,const double,const double),
153  const double),
155  const double),
156  DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double,
157  const double,const double),
158  DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double,
159  const double,const double),
160  DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double,
161  const double,const MagickBooleanType,const MagickBooleanType,const double,
162  const double),
163  DrawPathEllipticArcRelative(DrawingWand *,const double,const double,
164  const double,const MagickBooleanType,const MagickBooleanType,const double,
165  const double),
167  DrawPathLineToAbsolute(DrawingWand *,const double,const double),
168  DrawPathLineToRelative(DrawingWand *,const double,const double),
173  DrawPathMoveToAbsolute(DrawingWand *,const double,const double),
174  DrawPathMoveToRelative(DrawingWand *,const double,const double),
176  DrawPoint(DrawingWand *,const double,const double),
177  DrawPolygon(DrawingWand *,const size_t,const PointInfo *),
178  DrawPolyline(DrawingWand *,const size_t,const PointInfo *),
181  DrawPushClipPath(DrawingWand *,const char *),
183  DrawRectangle(DrawingWand *,const double,const double,const double,
184  const double),
186  DrawRotate(DrawingWand *,const double),
187  DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double),
188  DrawScale(DrawingWand *,const double,const double),
190  DrawSetClipRule(DrawingWand *,const FillRule),
191  DrawSetClipUnits(DrawingWand *,const ClipPathUnits),
193  DrawSetFillOpacity(DrawingWand *,const double),
194  DrawSetFillRule(DrawingWand *,const FillRule),
195  DrawSetFontSize(DrawingWand *,const double),
196  DrawSetFontStretch(DrawingWand *,const StretchType),
197  DrawSetFontStyle(DrawingWand *,const StyleType),
198  DrawSetFontWeight(DrawingWand *,const size_t),
199  DrawSetGravity(DrawingWand *,const GravityType),
200  DrawSetOpacity(DrawingWand *,const double),
201  DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
203  DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
204  DrawSetStrokeLineCap(DrawingWand *,const LineCap),
205  DrawSetStrokeLineJoin(DrawingWand *,const LineJoin),
206  DrawSetStrokeMiterLimit(DrawingWand *,const size_t),
207  DrawSetStrokeOpacity(DrawingWand *, const double),
208  DrawSetStrokeWidth(DrawingWand *,const double),
209  DrawSetTextAlignment(DrawingWand *,const AlignType),
210  DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
211  DrawSetTextDecoration(DrawingWand *,const DecorationType),
212  DrawSetTextDirection(DrawingWand *,const DirectionType),
213  DrawSetTextEncoding(DrawingWand *,const char *),
215  DrawSetViewbox(DrawingWand *,ssize_t,ssize_t,ssize_t,ssize_t),
216  DrawSkewX(DrawingWand *,const double),
217  DrawSkewY(DrawingWand *,const double),
218  DrawTranslate(DrawingWand *,const double,const double);
219 
220 #if defined(__cplusplus) || defined(c_plusplus)
221 }
222 #endif
223 
224 #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:1987
WandExport LineCap DrawGetStrokeLineCap(const DrawingWand *)
Definition: drawing-wand.c:1953
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:1329
WandExport void DrawSetFillOpacity(DrawingWand *, const double)
WandExport DrawInfo * PeekDrawingWand(const DrawingWand *)
Definition: drawing-wand.c:6783
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:1646
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:2395
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:1615
WandExport void DrawSetStrokeLineCap(DrawingWand *, const LineCap)
WandExport DrawingWand * AcquireDrawingWand(const DrawInfo *, Image *)
WandExport void DrawSetStrokeLineJoin(DrawingWand *, const LineJoin)
WandExport GravityType DrawGetGravity(const DrawingWand *)
Definition: drawing-wand.c:1709
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:1431
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 MagickBooleanType DrawSetDensity(DrawingWand *, const char *)
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:2217
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:6601
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:2121
WandExport void DrawPathLineToHorizontalRelative(DrawingWand *, const double)
WandExport double * DrawGetStrokeDashArray(const DrawingWand *, size_t *)
WandExport MagickBooleanType IsDrawingWand(const DrawingWand *)
WandExport void DrawPathLineToAbsolute(DrawingWand *, const double, const double)
WandExport double DrawGetTextInterwordSpacing(DrawingWand *)
Definition: drawing-wand.c:2346
WandExport void DrawSetTextAntialias(DrawingWand *, const MagickBooleanType)
WandExport char * DrawGetDensity(const DrawingWand *)
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 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:6708
WandExport void DrawSetTextAlignment(DrawingWand *, const AlignType)
WandExport double DrawGetStrokeDashOffset(const DrawingWand *)
WandExport DrawingWand * CloneDrawingWand(const DrawingWand *)
WandExport void DrawPathStart(DrawingWand *)
Definition: drawing-wand.c:90
WandExport DecorationType DrawGetTextDecoration(const DrawingWand *)
Definition: drawing-wand.c:2185
WandExport size_t DrawGetStrokeMiterLimit(const DrawingWand *)
Definition: drawing-wand.c:2022
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:1204
WandExport void DrawSetClipUnits(DrawingWand *, const ClipPathUnits)
WandExport MagickBooleanType PushDrawingWand(DrawingWand *)
Definition: drawing-wand.c:6877
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)