MagickWand  7.0.7
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 "MagickWand/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 ExceptionInfo
73  *DrawCloneExceptionInfo(const DrawingWand *wand);
74 
75 extern WandExport ExceptionType
77 
78 extern WandExport FillRule
81 
82 extern WandExport GravityType
83  DrawGetGravity(const DrawingWand *);
84 
85 extern WandExport LineCap
87 
88 extern WandExport LineJoin
90 
91 extern WandExport MagickBooleanType
93  DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
94  const double,const double,MagickWand *),
95  DrawGetFontResolution(const DrawingWand *,double *,double *),
99  DrawPushPattern(DrawingWand *,const char *,const double,const double,
100  const double,const double),
102  DrawSetClipPath(DrawingWand *,const char *),
103  DrawSetDensity(DrawingWand *,const char *),
104  DrawSetFillPatternURL(DrawingWand *,const char *),
105  DrawSetFont(DrawingWand *,const char *),
106  DrawSetFontFamily(DrawingWand *,const char *),
107  DrawSetFontResolution(DrawingWand *,const double,const double),
108  DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
109  DrawSetStrokePatternURL(DrawingWand *,const char *),
110  DrawSetVectorGraphics(DrawingWand *,const char *),
111  IsDrawingWand(const DrawingWand *),
114 
115 extern WandExport StretchType
117 
118 extern WandExport StyleType
119  DrawGetFontStyle(const DrawingWand *);
120 
121 extern WandExport size_t
124 
125 extern WandExport void
127  DrawAffine(DrawingWand *,const AffineMatrix *),
128  DrawAlpha(DrawingWand *,const double,const double,const PaintMethod),
129  DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *),
130  DrawArc(DrawingWand *,const double,const double,const double,const double,
131  const double,const double),
132  DrawBezier(DrawingWand *,const size_t,const PointInfo *),
134  DrawCircle(DrawingWand *,const double,const double,const double,const double),
135  DrawColor(DrawingWand *,const double,const double,const PaintMethod),
136  DrawComment(DrawingWand *,const char *),
137  DrawEllipse(DrawingWand *,const double,const double,const double,const double,
138  const double,const double),
141  DrawSetTextKerning(DrawingWand *,const double),
145  DrawLine(DrawingWand *,const double, const double,const double,const double),
147  DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double,
148  const double,const double,const double),
149  DrawPathCurveToRelative(DrawingWand *,const double,const double,const double,
150  const double,const double, const double),
152  const double,const double,const double),
154  const double,const double,const double),
156  const double),
158  const double),
159  DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double,
160  const double,const double),
161  DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double,
162  const double,const double),
163  DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double,
164  const double,const MagickBooleanType,const MagickBooleanType,const double,
165  const double),
166  DrawPathEllipticArcRelative(DrawingWand *,const double,const double,
167  const double,const MagickBooleanType,const MagickBooleanType,const double,
168  const double),
170  DrawPathLineToAbsolute(DrawingWand *,const double,const double),
171  DrawPathLineToRelative(DrawingWand *,const double,const double),
176  DrawPathMoveToAbsolute(DrawingWand *,const double,const double),
177  DrawPathMoveToRelative(DrawingWand *,const double,const double),
179  DrawPoint(DrawingWand *,const double,const double),
180  DrawPolygon(DrawingWand *,const size_t,const PointInfo *),
181  DrawPolyline(DrawingWand *,const size_t,const PointInfo *),
184  DrawPushClipPath(DrawingWand *,const char *),
186  DrawRectangle(DrawingWand *,const double,const double,const double,
187  const double),
189  DrawRotate(DrawingWand *,const double),
190  DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double),
191  DrawScale(DrawingWand *,const double,const double),
193  DrawSetClipRule(DrawingWand *,const FillRule),
194  DrawSetClipUnits(DrawingWand *,const ClipPathUnits),
196  DrawSetFillOpacity(DrawingWand *,const double),
197  DrawSetFillRule(DrawingWand *,const FillRule),
198  DrawSetFontSize(DrawingWand *,const double),
199  DrawSetFontStretch(DrawingWand *,const StretchType),
200  DrawSetFontStyle(DrawingWand *,const StyleType),
201  DrawSetFontWeight(DrawingWand *,const size_t),
202  DrawSetGravity(DrawingWand *,const GravityType),
203  DrawSetOpacity(DrawingWand *,const double),
204  DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
206  DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
207  DrawSetStrokeLineCap(DrawingWand *,const LineCap),
208  DrawSetStrokeLineJoin(DrawingWand *,const LineJoin),
209  DrawSetStrokeMiterLimit(DrawingWand *,const size_t),
210  DrawSetStrokeOpacity(DrawingWand *, const double),
211  DrawSetStrokeWidth(DrawingWand *,const double),
212  DrawSetTextAlignment(DrawingWand *,const AlignType),
213  DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
214  DrawSetTextDecoration(DrawingWand *,const DecorationType),
215  DrawSetTextDirection(DrawingWand *,const DirectionType),
216  DrawSetTextEncoding(DrawingWand *,const char *),
218  DrawSetViewbox(DrawingWand *,const double,const double,const double,
219  const double),
220  DrawSkewX(DrawingWand *,const double),
221  DrawSkewY(DrawingWand *,const double),
222  DrawTranslate(DrawingWand *,const double,const double);
223 
224 #if defined(__cplusplus) || defined(c_plusplus)
225 }
226 #endif
227 
228 #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 DrawAlpha(DrawingWand *, const double, const double, const PaintMethod)
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 *)
WandExport LineCap DrawGetStrokeLineCap(const DrawingWand *)
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 *)
WandExport void DrawSetFillOpacity(DrawingWand *, const double)
WandExport DrawInfo * PeekDrawingWand(const DrawingWand *)
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
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 DrawSetViewbox(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawSetFillColor(DrawingWand *, const PixelWand *)
WandExport StyleType DrawGetFontStyle(const DrawingWand *)
WandExport MagickBooleanType PopDrawingWand(DrawingWand *)
WandExport void DrawSkewX(DrawingWand *, const double)
WandExport void DrawSetBorderColor(DrawingWand *, const PixelWand *)
WandExport ExceptionInfo * DrawCloneExceptionInfo(const DrawingWand *wand)
Definition: drawing-wand.c:901
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 *)
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 *)
WandExport void DrawSetStrokeLineCap(DrawingWand *, const LineCap)
WandExport DrawingWand * AcquireDrawingWand(const DrawInfo *, Image *)
WandExport void DrawSetStrokeLineJoin(DrawingWand *, const LineJoin)
WandExport GravityType DrawGetGravity(const DrawingWand *)
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 *)
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 *)
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)
WandExport char * DrawGetTextEncoding(const DrawingWand *)
WandExport AlignType DrawGetTextAlignment(const DrawingWand *)
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 *)
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)
WandExport void DrawSetTextAlignment(DrawingWand *, const AlignType)
WandExport double DrawGetStrokeDashOffset(const DrawingWand *)
WandExport DrawingWand * CloneDrawingWand(const DrawingWand *)
WandExport void DrawPathStart(DrawingWand *)
WandExport DecorationType DrawGetTextDecoration(const DrawingWand *)
WandExport size_t DrawGetStrokeMiterLimit(const DrawingWand *)
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 *)
WandExport void DrawSetClipUnits(DrawingWand *, const ClipPathUnits)
WandExport MagickBooleanType PushDrawingWand(DrawingWand *)
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)