MagickWand  7.0.8
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://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,
94  const double,const double,const double,MagickWand *),
95  DrawGetFontResolution(const DrawingWand *,double *,double *),
98  DrawGetTypeMetrics(const DrawingWand *,const char *,MagickBooleanType,
99  TypeMetric *),
101  DrawPushPattern(DrawingWand *,const char *,const double,const double,
102  const double,const double),
104  DrawSetClipPath(DrawingWand *,const char *),
105  DrawSetDensity(DrawingWand *,const char *),
106  DrawSetFillPatternURL(DrawingWand *,const char *),
107  DrawSetFont(DrawingWand *,const char *),
108  DrawSetFontFamily(DrawingWand *,const char *),
109  DrawSetFontResolution(DrawingWand *,const double,const double),
110  DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
111  DrawSetStrokePatternURL(DrawingWand *,const char *),
112  DrawSetVectorGraphics(DrawingWand *,const char *),
113  IsDrawingWand(const DrawingWand *),
116 
117 extern WandExport StretchType
119 
120 extern WandExport StyleType
121  DrawGetFontStyle(const DrawingWand *);
122 
123 extern WandExport size_t
126 
127 extern WandExport void
129  DrawAffine(DrawingWand *,const AffineMatrix *),
130  DrawAlpha(DrawingWand *,const double,const double,const PaintMethod),
131  DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *),
132  DrawArc(DrawingWand *,const double,const double,const double,const double,
133  const double,const double),
134  DrawBezier(DrawingWand *,const size_t,const PointInfo *),
136  DrawCircle(DrawingWand *,const double,const double,const double,const double),
137  DrawColor(DrawingWand *,const double,const double,const PaintMethod),
138  DrawComment(DrawingWand *,const char *),
139  DrawEllipse(DrawingWand *,const double,const double,const double,const double,
140  const double,const double),
143  DrawSetTextKerning(DrawingWand *,const double),
147  DrawLine(DrawingWand *,const double, const double,const double,const double),
149  DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double,
150  const double,const double,const double),
151  DrawPathCurveToRelative(DrawingWand *,const double,const double,const double,
152  const double,const double, const double),
154  const double,const double,const double),
156  const double,const double,const double),
158  const double),
160  const double),
161  DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double,
162  const double,const double),
163  DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double,
164  const double,const double),
165  DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double,
166  const double,const MagickBooleanType,const MagickBooleanType,const double,
167  const double),
168  DrawPathEllipticArcRelative(DrawingWand *,const double,const double,
169  const double,const MagickBooleanType,const MagickBooleanType,const double,
170  const double),
172  DrawPathLineToAbsolute(DrawingWand *,const double,const double),
173  DrawPathLineToRelative(DrawingWand *,const double,const double),
178  DrawPathMoveToAbsolute(DrawingWand *,const double,const double),
179  DrawPathMoveToRelative(DrawingWand *,const double,const double),
181  DrawPoint(DrawingWand *,const double,const double),
182  DrawPolygon(DrawingWand *,const size_t,const PointInfo *),
183  DrawPolyline(DrawingWand *,const size_t,const PointInfo *),
186  DrawPushClipPath(DrawingWand *,const char *),
188  DrawRectangle(DrawingWand *,const double,const double,const double,
189  const double),
191  DrawRotate(DrawingWand *,const double),
192  DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double),
193  DrawScale(DrawingWand *,const double,const double),
195  DrawSetClipRule(DrawingWand *,const FillRule),
196  DrawSetClipUnits(DrawingWand *,const ClipPathUnits),
198  DrawSetFillOpacity(DrawingWand *,const double),
199  DrawSetFillRule(DrawingWand *,const FillRule),
200  DrawSetFontSize(DrawingWand *,const double),
201  DrawSetFontStretch(DrawingWand *,const StretchType),
202  DrawSetFontStyle(DrawingWand *,const StyleType),
203  DrawSetFontWeight(DrawingWand *,const size_t),
204  DrawSetGravity(DrawingWand *,const GravityType),
205  DrawSetOpacity(DrawingWand *,const double),
206  DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
208  DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
209  DrawSetStrokeLineCap(DrawingWand *,const LineCap),
210  DrawSetStrokeLineJoin(DrawingWand *,const LineJoin),
211  DrawSetStrokeMiterLimit(DrawingWand *,const size_t),
212  DrawSetStrokeOpacity(DrawingWand *, const double),
213  DrawSetStrokeWidth(DrawingWand *,const double),
214  DrawSetTextAlignment(DrawingWand *,const AlignType),
215  DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
216  DrawSetTextDecoration(DrawingWand *,const DecorationType),
217  DrawSetTextDirection(DrawingWand *,const DirectionType),
218  DrawSetTextEncoding(DrawingWand *,const char *),
220  DrawSetViewbox(DrawingWand *,const double,const double,const double,
221  const double),
222  DrawSkewX(DrawingWand *,const double),
223  DrawSkewY(DrawingWand *,const double),
224  DrawTranslate(DrawingWand *,const double,const double);
225 
226 #if defined(__cplusplus) || defined(c_plusplus)
227 }
228 #endif
229 
230 #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 DrawGetTypeMetrics(const DrawingWand *, const char *, MagickBooleanType, TypeMetric *)
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)