MagickWand 6.9.11-60
Convert, Edit, Or Compose Bitmap Images
drawing-wand.h
Go to the documentation of this file.
1/*
2 Copyright 1999-2021 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. You may
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 "wand/pixel-wand.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27typedef struct _DrawingWand
29
30extern WandExport AlignType
32
33extern WandExport char
36 *DrawGetException(const DrawingWand *,ExceptionType *),
41
42extern WandExport ClipPathUnits
43 DrawGetClipUnits(const DrawingWand *) magick_attribute((__pure__));
44
45extern WandExport DecorationType
46 DrawGetTextDecoration(const DrawingWand *) magick_attribute((__pure__));
47
48extern WandExport DirectionType
50
51extern WandExport double
52 DrawGetFillOpacity(const DrawingWand *) magick_attribute((__pure__)),
53 DrawGetFontSize(const DrawingWand *) magick_attribute((__pure__)),
54 DrawGetOpacity(const DrawingWand *) magick_attribute((__pure__)),
56 DrawGetStrokeDashOffset(const DrawingWand *) magick_attribute((__pure__)),
57 DrawGetStrokeOpacity(const DrawingWand *) magick_attribute((__pure__)),
58 DrawGetStrokeWidth(const DrawingWand *) magick_attribute((__pure__)),
59 DrawGetTextKerning(DrawingWand *) magick_attribute((__pure__)),
60 DrawGetTextInterlineSpacing(DrawingWand *) magick_attribute((__pure__)),
61 DrawGetTextInterwordSpacing(DrawingWand *) magick_attribute((__pure__));
62
63extern WandExport DrawInfo
65
67 *AcquireDrawingWand(const DrawInfo *,Image *),
70 *NewDrawingWand(void);
71
72extern WandExport ExceptionType
74
75extern WandExport FillRule
76 DrawGetClipRule(const DrawingWand *) magick_attribute((__pure__)),
77 DrawGetFillRule(const DrawingWand *) magick_attribute((__pure__));
78
79extern WandExport GravityType
80 DrawGetGravity(const DrawingWand *) magick_attribute((__pure__));
81
82extern WandExport LineCap
83 DrawGetStrokeLineCap(const DrawingWand *) magick_attribute((__pure__));
84
85extern WandExport LineJoin
86 DrawGetStrokeLineJoin(const DrawingWand *) magick_attribute((__pure__));
87
88extern WandExport MagickBooleanType
90 DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
91 const double,const double,MagickWand *),
92 DrawGetFontResolution(const DrawingWand *,double *,double *),
93 DrawGetStrokeAntialias(const DrawingWand *) magick_attribute((__pure__)),
94 DrawGetTextAntialias(const DrawingWand *) magick_attribute((__pure__)),
96 DrawPushPattern(DrawingWand *,const char *,const double,const double,
97 const double,const double),
102 DrawSetFont(DrawingWand *,const char *),
104 DrawSetFontResolution(DrawingWand *,const double,const double),
105 DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
111
112extern WandExport StretchType
114
115extern WandExport StyleType
117
118extern WandExport size_t
119 DrawGetFontWeight(const DrawingWand *) magick_attribute((__pure__)),
120 DrawGetStrokeMiterLimit(const DrawingWand *) magick_attribute((__pure__));
121
122extern 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),
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 *),
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),
194 DrawSetFillRule(DrawingWand *,const FillRule),
196 DrawSetFontStretch(DrawingWand *,const StretchType),
197 DrawSetFontStyle(DrawingWand *,const StyleType),
199 DrawSetGravity(DrawingWand *,const GravityType),
201 DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
203 DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
210 DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
211 DrawSetTextDecoration(DrawingWand *,const DecorationType),
212 DrawSetTextDirection(DrawingWand *,const DirectionType),
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 DrawSetFontStretch(DrawingWand *, const StretchType)
WandExport MagickBooleanType DrawRender(DrawingWand *)
WandExport double DrawGetOpacity(const DrawingWand *) magick_attribute((__pure__))
WandExport double DrawGetFillOpacity(const DrawingWand *) magick_attribute((__pure__))
WandExport size_t DrawGetStrokeMiterLimit(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:2023
WandExport void DrawSetFillOpacity(DrawingWand *, const double)
WandExport DrawingWand * AcquireDrawingWand(const DrawInfo *, Image *)
WandExport double DrawGetStrokeWidth(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawPathLineToVerticalAbsolute(DrawingWand *, const double)
WandExport DecorationType DrawGetTextDecoration(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:2186
WandExport DrawingWand * NewDrawingWand(void)
Definition: drawing-wand.c:6709
WandExport void DrawPathFinish(DrawingWand *)
WandExport void DrawGetTextUnderColor(const DrawingWand *, PixelWand *)
WandExport void DrawSetViewbox(DrawingWand *, ssize_t, ssize_t, ssize_t, ssize_t)
WandExport MagickBooleanType DrawPushPattern(DrawingWand *, const char *, const double, const double, const double, const double)
WandExport MagickBooleanType DrawGetStrokeAntialias(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawPathEllipticArcRelative(DrawingWand *, const double, const double, const double, const MagickBooleanType, const MagickBooleanType, const double, const double)
WandExport void DrawSetOpacity(DrawingWand *, const double)
WandExport void DrawPathEllipticArcAbsolute(DrawingWand *, const double, const double, const double, const MagickBooleanType, const MagickBooleanType, const double, const double)
WandExport LineJoin DrawGetStrokeLineJoin(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:1988
WandExport DirectionType DrawGetTextDirection(const DrawingWand *)
Definition: drawing-wand.c:2218
WandExport size_t DrawGetFontWeight(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawAnnotation(DrawingWand *, const double, const double, const unsigned char *)
WandExport void DrawResetVectorGraphics(DrawingWand *)
WandExport FillRule DrawGetClipRule(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawSetBorderColor(DrawingWand *, const PixelWand *)
WandExport StretchType DrawGetFontStretch(const DrawingWand *)
Definition: drawing-wand.c:1616
WandExport void DrawSetTextAntialias(DrawingWand *, const MagickBooleanType)
WandExport void DrawSetTextInterwordSpacing(DrawingWand *, const double)
WandExport double DrawGetStrokeDashOffset(const DrawingWand *) magick_attribute((__pure__))
WandExport double DrawGetFontSize(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawPathCurveToSmoothRelative(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawScale(DrawingWand *, const double, const double)
WandExport void DrawGetBorderColor(const DrawingWand *, PixelWand *)
WandExport void DrawRectangle(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawPathStart(DrawingWand *)
WandExport double DrawGetStrokeOpacity(const DrawingWand *) magick_attribute((__pure__))
WandExport double DrawGetTextInterlineSpacing(DrawingWand *) magick_attribute((__pure__))
WandExport void DrawSetStrokeColor(DrawingWand *, const PixelWand *)
WandExport void DrawPolygon(DrawingWand *, const size_t, const PointInfo *)
WandExport void DrawPoint(DrawingWand *, const double, const double)
WandExport MagickBooleanType PushDrawingWand(DrawingWand *)
Definition: drawing-wand.c:6878
WandExport void DrawSkewY(DrawingWand *, const double)
WandExport void DrawPathLineToAbsolute(DrawingWand *, const double, const double)
WandExport MagickBooleanType DrawSetVectorGraphics(DrawingWand *, const char *)
WandExport DrawingWand * DestroyDrawingWand(DrawingWand *)
WandExport DrawingWand * CloneDrawingWand(const DrawingWand *)
WandExport void DrawSetTextEncoding(DrawingWand *, const char *)
WandExport void DrawLine(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawArc(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawPopClipPath(DrawingWand *)
WandExport void DrawPushClipPath(DrawingWand *, const char *)
WandExport void DrawEllipse(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport AlignType DrawGetTextAlignment(const DrawingWand *)
Definition: drawing-wand.c:2122
WandExport void DrawSetGravity(DrawingWand *, const GravityType)
WandExport MagickBooleanType DrawSetFillPatternURL(DrawingWand *, const char *)
WandExport void DrawRotate(DrawingWand *, const double)
WandExport void DrawPathClose(DrawingWand *)
WandExport void DrawSetFillColor(DrawingWand *, const PixelWand *)
WandExport MagickBooleanType DrawSetFontResolution(DrawingWand *, const double, const double)
WandExport char * DrawGetVectorGraphics(DrawingWand *)
Definition: drawing-wand.c:2396
WandExport void DrawRoundRectangle(DrawingWand *, double, double, double, double, double, double)
WandExport void DrawGetStrokeColor(const DrawingWand *, PixelWand *)
WandExport void DrawPushDefs(DrawingWand *)
WandExport MagickBooleanType DrawGetTextAntialias(const DrawingWand *) magick_attribute((__pure__))
WandExport void DrawSetClipRule(DrawingWand *, const FillRule)
WandExport void DrawPathLineToHorizontalRelative(DrawingWand *, const double)
WandExport void DrawPolyline(DrawingWand *, const size_t, const PointInfo *)
WandExport void DrawSkewX(DrawingWand *, const double)
WandExport void DrawSetTextAlignment(DrawingWand *, const AlignType)
WandExport void DrawSetTextDecoration(DrawingWand *, const DecorationType)
WandExport char * DrawGetException(const DrawingWand *, ExceptionType *)
WandExport double DrawGetTextKerning(DrawingWand *) magick_attribute((__pure__))
WandExport void DrawSetStrokeLineJoin(DrawingWand *, const LineJoin)
WandExport void DrawPathLineToVerticalRelative(DrawingWand *, const double)
WandExport MagickBooleanType DrawSetFont(DrawingWand *, const char *)
WandExport void DrawPathCurveToQuadraticBezierRelative(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawSetFillRule(DrawingWand *, const FillRule)
WandExport void DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *, const double, const double)
WandExport void DrawPathLineToRelative(DrawingWand *, const double, const double)
WandExport MagickBooleanType DrawSetStrokePatternURL(DrawingWand *, const char *)
WandExport void DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawSetStrokeDashOffset(DrawingWand *, const double dashoffset)
WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *, const size_t, const double *)
WandExport char * DrawGetDensity(const DrawingWand *)
WandExport char * DrawGetClipPath(const DrawingWand *)
WandExport MagickBooleanType DrawComposite(DrawingWand *, const CompositeOperator, const double, const double, const double, const double, MagickWand *)
WandExport void DrawPathCurveToRelative(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawSetFontWeight(DrawingWand *, const size_t)
WandExport StyleType DrawGetFontStyle(const DrawingWand *)
Definition: drawing-wand.c:1647
WandExport void DrawSetTextInterlineSpacing(DrawingWand *, const double)
WandExport MagickBooleanType DrawSetFontFamily(DrawingWand *, const char *)
WandExport DrawInfo * PeekDrawingWand(const DrawingWand *)
Definition: drawing-wand.c:6784
WandExport void DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *, const double, const double)
WandExport LineCap DrawGetStrokeLineCap(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:1954
WandExport void DrawSetStrokeOpacity(DrawingWand *, const double)
WandExport void DrawBezier(DrawingWand *, const size_t, const PointInfo *)
WandExport void DrawSetStrokeAntialias(DrawingWand *, const MagickBooleanType)
WandExport void DrawTranslate(DrawingWand *, const double, const double)
Definition: drawing-wand.c:6602
WandExport MagickBooleanType DrawSetClipPath(DrawingWand *, const char *)
WandExport void DrawPopDefs(DrawingWand *)
WandExport void DrawPathCurveToSmoothAbsolute(DrawingWand *, const double, const double, const double, const double)
WandExport void DrawColor(DrawingWand *, const double, const double, const PaintMethod)
WandExport void DrawSetStrokeLineCap(DrawingWand *, const LineCap)
WandExport void DrawSetTextDirection(DrawingWand *, const DirectionType)
WandExport FillRule DrawGetFillRule(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:1432
WandExport char * DrawGetTextEncoding(const DrawingWand *)
WandExport void DrawSetTextKerning(DrawingWand *, const double)
WandExport void DrawSetFontStyle(DrawingWand *, const StyleType)
WandExport void DrawPathCurveToAbsolute(DrawingWand *, const double, const double, const double, const double, const double, const double)
WandExport void DrawSetStrokeMiterLimit(DrawingWand *, const size_t)
WandExport void DrawPathMoveToRelative(DrawingWand *, const double, const double)
WandExport void DrawSetClipUnits(DrawingWand *, const ClipPathUnits)
WandExport ExceptionType DrawGetExceptionType(const DrawingWand *)
Definition: drawing-wand.c:1330
WandExport void DrawAffine(DrawingWand *, const AffineMatrix *)
WandExport void ClearDrawingWand(DrawingWand *)
WandExport void DrawCircle(DrawingWand *, const double, const double, const double, const double)
WandExport MagickBooleanType DrawPopPattern(DrawingWand *)
WandExport MagickBooleanType PopDrawingWand(DrawingWand *)
WandExport double DrawGetTextInterwordSpacing(DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:2347
WandExport void DrawGetFillColor(const DrawingWand *, PixelWand *)
WandExport void DrawSetFontSize(DrawingWand *, const double)
WandExport MagickBooleanType DrawClearException(DrawingWand *)
WandExport MagickBooleanType DrawSetDensity(DrawingWand *, const char *)
WandExport double * DrawGetStrokeDashArray(const DrawingWand *, size_t *)
WandExport void DrawSetStrokeWidth(DrawingWand *, const double)
WandExport void DrawPathMoveToAbsolute(DrawingWand *, const double, const double)
WandExport MagickBooleanType IsDrawingWand(const DrawingWand *)
WandExport void DrawMatte(DrawingWand *, const double, const double, const PaintMethod)
WandExport ClipPathUnits DrawGetClipUnits(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:1205
WandExport void DrawComment(DrawingWand *, const char *)
WandExport void DrawSetTextUnderColor(DrawingWand *, const PixelWand *)
WandExport GravityType DrawGetGravity(const DrawingWand *) magick_attribute((__pure__))
Definition: drawing-wand.c:1710
WandExport void DrawPathLineToHorizontalAbsolute(DrawingWand *, const double)
WandExport char * DrawGetFont(const DrawingWand *)
WandExport char * DrawGetFontFamily(const DrawingWand *)
WandExport MagickBooleanType DrawGetFontResolution(const DrawingWand *, double *, double *)
#define WandExport
Definition: method-attribute.h:71
Definition: drawing-wand.c:92
Definition: magick-wand-private.h:51
Definition: pixel-wand.c:64