cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
Cristy | 7ce65e7 | 2015-12-12 18:03:16 -0500 | [diff] [blame] | 2 | Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 | |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 21 | #include "MagickWand/pixel-wand.h" |
| 22 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | #if defined(__cplusplus) || defined(c_plusplus) |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27 | typedef struct _DrawingWand |
| 28 | DrawingWand; |
| 29 | |
| 30 | extern WandExport AlignType |
| 31 | DrawGetTextAlignment(const DrawingWand *); |
| 32 | |
| 33 | extern WandExport char |
| 34 | *DrawGetClipPath(const DrawingWand *), |
dirk | 4777847 | 2015-07-11 10:20:41 +0000 | [diff] [blame] | 35 | *DrawGetDensity(const DrawingWand *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36 | *DrawGetException(const DrawingWand *,ExceptionType *), |
| 37 | *DrawGetFont(const DrawingWand *), |
| 38 | *DrawGetFontFamily(const DrawingWand *), |
| 39 | *DrawGetTextEncoding(const DrawingWand *), |
| 40 | *DrawGetVectorGraphics(DrawingWand *); |
| 41 | |
| 42 | extern WandExport ClipPathUnits |
| 43 | DrawGetClipUnits(const DrawingWand *); |
| 44 | |
| 45 | extern WandExport DecorationType |
| 46 | DrawGetTextDecoration(const DrawingWand *); |
| 47 | |
dirk | c084d39 | 2014-01-27 19:08:45 +0000 | [diff] [blame] | 48 | extern WandExport DirectionType |
| 49 | DrawGetTextDirection(const DrawingWand *); |
| 50 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 51 | extern WandExport double |
dirk | c8e845f | 2015-04-07 19:32:12 +0000 | [diff] [blame] | 52 | DrawGetFillOpacity(const DrawingWand *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 53 | DrawGetFontSize(const DrawingWand *), |
dirk | c8e845f | 2015-04-07 19:32:12 +0000 | [diff] [blame] | 54 | DrawGetOpacity(const DrawingWand *), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 55 | *DrawGetStrokeDashArray(const DrawingWand *,size_t *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 56 | DrawGetStrokeDashOffset(const DrawingWand *), |
dirk | c8e845f | 2015-04-07 19:32:12 +0000 | [diff] [blame] | 57 | DrawGetStrokeOpacty(const DrawingWand *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 58 | DrawGetStrokeWidth(const DrawingWand *), |
| 59 | DrawGetTextKerning(DrawingWand *), |
cristy | b32b90a | 2009-09-07 21:45:48 +0000 | [diff] [blame] | 60 | DrawGetTextInterlineSpacing(DrawingWand *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 61 | DrawGetTextInterwordSpacing(DrawingWand *); |
| 62 | |
| 63 | extern WandExport DrawInfo |
| 64 | *PeekDrawingWand(const DrawingWand *); |
| 65 | |
| 66 | extern WandExport DrawingWand |
Cristy | d9d2c0d | 2015-12-25 08:15:09 -0500 | [diff] [blame] | 67 | *AcquireDrawingWand(const DrawInfo *,Image *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 68 | *CloneDrawingWand(const DrawingWand *), |
| 69 | *DestroyDrawingWand(DrawingWand *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 70 | *NewDrawingWand(void); |
| 71 | |
dirk | 1940fe0 | 2013-12-07 19:19:26 +0000 | [diff] [blame] | 72 | extern WandExport ExceptionInfo |
| 73 | *DrawCloneExceptionInfo(const DrawingWand *wand); |
| 74 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 75 | extern WandExport ExceptionType |
| 76 | DrawGetExceptionType(const DrawingWand *); |
| 77 | |
| 78 | extern WandExport FillRule |
| 79 | DrawGetClipRule(const DrawingWand *), |
| 80 | DrawGetFillRule(const DrawingWand *); |
| 81 | |
| 82 | extern WandExport GravityType |
| 83 | DrawGetGravity(const DrawingWand *); |
| 84 | |
| 85 | extern WandExport LineCap |
| 86 | DrawGetStrokeLineCap(const DrawingWand *); |
| 87 | |
| 88 | extern WandExport LineJoin |
| 89 | DrawGetStrokeLineJoin(const DrawingWand *); |
| 90 | |
| 91 | extern WandExport MagickBooleanType |
| 92 | DrawClearException(DrawingWand *), |
| 93 | DrawComposite(DrawingWand *,const CompositeOperator,const double,const double, |
| 94 | const double,const double,MagickWand *), |
cristy | 5637538 | 2010-11-21 23:49:30 +0000 | [diff] [blame] | 95 | DrawGetFontResolution(const DrawingWand *,double *,double *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 | DrawGetStrokeAntialias(const DrawingWand *), |
| 97 | DrawGetTextAntialias(const DrawingWand *), |
| 98 | DrawPopPattern(DrawingWand *), |
| 99 | DrawPushPattern(DrawingWand *,const char *,const double,const double, |
| 100 | const double,const double), |
| 101 | DrawRender(DrawingWand *), |
| 102 | DrawSetClipPath(DrawingWand *,const char *), |
dirk | 4777847 | 2015-07-11 10:20:41 +0000 | [diff] [blame] | 103 | DrawSetDensity(DrawingWand *,const char *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | DrawSetFillPatternURL(DrawingWand *,const char *), |
| 105 | DrawSetFont(DrawingWand *,const char *), |
| 106 | DrawSetFontFamily(DrawingWand *,const char *), |
cristy | 5637538 | 2010-11-21 23:49:30 +0000 | [diff] [blame] | 107 | DrawSetFontResolution(DrawingWand *,const double,const double), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 108 | DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 109 | DrawSetStrokePatternURL(DrawingWand *,const char *), |
| 110 | DrawSetVectorGraphics(DrawingWand *,const char *), |
| 111 | IsDrawingWand(const DrawingWand *), |
| 112 | PopDrawingWand(DrawingWand *), |
| 113 | PushDrawingWand(DrawingWand *); |
| 114 | |
| 115 | extern WandExport StretchType |
| 116 | DrawGetFontStretch(const DrawingWand *); |
| 117 | |
| 118 | extern WandExport StyleType |
| 119 | DrawGetFontStyle(const DrawingWand *); |
| 120 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 121 | extern WandExport size_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 122 | DrawGetFontWeight(const DrawingWand *), |
| 123 | DrawGetStrokeMiterLimit(const DrawingWand *); |
| 124 | |
| 125 | extern WandExport void |
| 126 | ClearDrawingWand(DrawingWand *), |
| 127 | DrawAffine(DrawingWand *,const AffineMatrix *), |
dirk | 34e1a21 | 2015-03-22 16:45:12 +0000 | [diff] [blame] | 128 | DrawAlpha(DrawingWand *,const double,const double,const PaintMethod), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 132 | DrawBezier(DrawingWand *,const size_t,const PointInfo *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 133 | DrawGetBorderColor(const DrawingWand *,PixelWand *), |
| 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), |
| 139 | DrawGetFillColor(const DrawingWand *,PixelWand *), |
| 140 | DrawGetStrokeColor(const DrawingWand *,PixelWand *), |
| 141 | DrawSetTextKerning(DrawingWand *,const double), |
cristy | b32b90a | 2009-09-07 21:45:48 +0000 | [diff] [blame] | 142 | DrawSetTextInterlineSpacing(DrawingWand *,const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 143 | DrawSetTextInterwordSpacing(DrawingWand *,const double), |
| 144 | DrawGetTextUnderColor(const DrawingWand *,PixelWand *), |
| 145 | DrawLine(DrawingWand *,const double, const double,const double,const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 146 | DrawPathClose(DrawingWand *), |
| 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), |
| 151 | DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *,const double, |
| 152 | const double,const double,const double), |
| 153 | DrawPathCurveToQuadraticBezierRelative(DrawingWand *,const double, |
| 154 | const double,const double,const double), |
| 155 | DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *,const double, |
| 156 | const double), |
| 157 | DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *,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), |
| 169 | DrawPathFinish(DrawingWand *), |
| 170 | DrawPathLineToAbsolute(DrawingWand *,const double,const double), |
| 171 | DrawPathLineToRelative(DrawingWand *,const double,const double), |
| 172 | DrawPathLineToHorizontalAbsolute(DrawingWand *,const double), |
| 173 | DrawPathLineToHorizontalRelative(DrawingWand *,const double), |
| 174 | DrawPathLineToVerticalAbsolute(DrawingWand *,const double), |
| 175 | DrawPathLineToVerticalRelative(DrawingWand *,const double), |
| 176 | DrawPathMoveToAbsolute(DrawingWand *,const double,const double), |
| 177 | DrawPathMoveToRelative(DrawingWand *,const double,const double), |
| 178 | DrawPathStart(DrawingWand *), |
| 179 | DrawPoint(DrawingWand *,const double,const double), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 180 | DrawPolygon(DrawingWand *,const size_t,const PointInfo *), |
| 181 | DrawPolyline(DrawingWand *,const size_t,const PointInfo *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 182 | DrawPopClipPath(DrawingWand *), |
| 183 | DrawPopDefs(DrawingWand *), |
| 184 | DrawPushClipPath(DrawingWand *,const char *), |
| 185 | DrawPushDefs(DrawingWand *), |
| 186 | DrawRectangle(DrawingWand *,const double,const double,const double, |
| 187 | const double), |
| 188 | DrawResetVectorGraphics(DrawingWand *), |
| 189 | DrawRotate(DrawingWand *,const double), |
| 190 | DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double), |
| 191 | DrawScale(DrawingWand *,const double,const double), |
| 192 | DrawSetBorderColor(DrawingWand *,const PixelWand *), |
| 193 | DrawSetClipRule(DrawingWand *,const FillRule), |
| 194 | DrawSetClipUnits(DrawingWand *,const ClipPathUnits), |
| 195 | DrawSetFillColor(DrawingWand *,const PixelWand *), |
dirk | c8e845f | 2015-04-07 19:32:12 +0000 | [diff] [blame] | 196 | DrawSetFillOpacity(DrawingWand *,const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 197 | DrawSetFillRule(DrawingWand *,const FillRule), |
| 198 | DrawSetFontSize(DrawingWand *,const double), |
| 199 | DrawSetFontStretch(DrawingWand *,const StretchType), |
| 200 | DrawSetFontStyle(DrawingWand *,const StyleType), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 201 | DrawSetFontWeight(DrawingWand *,const size_t), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 202 | DrawSetGravity(DrawingWand *,const GravityType), |
cristy | cc29a96 | 2015-03-23 21:17:46 +0000 | [diff] [blame] | 203 | DrawSetOpacity(DrawingWand *,const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 204 | DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType), |
| 205 | DrawSetStrokeColor(DrawingWand *,const PixelWand *), |
| 206 | DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset), |
| 207 | DrawSetStrokeLineCap(DrawingWand *,const LineCap), |
| 208 | DrawSetStrokeLineJoin(DrawingWand *,const LineJoin), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 209 | DrawSetStrokeMiterLimit(DrawingWand *,const size_t), |
dirk | c8e845f | 2015-04-07 19:32:12 +0000 | [diff] [blame] | 210 | DrawSetStrokeOpacity(DrawingWand *, const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 211 | DrawSetStrokeWidth(DrawingWand *,const double), |
| 212 | DrawSetTextAlignment(DrawingWand *,const AlignType), |
| 213 | DrawSetTextAntialias(DrawingWand *,const MagickBooleanType), |
| 214 | DrawSetTextDecoration(DrawingWand *,const DecorationType), |
dirk | c084d39 | 2014-01-27 19:08:45 +0000 | [diff] [blame] | 215 | DrawSetTextDirection(DrawingWand *,const DirectionType), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 216 | DrawSetTextEncoding(DrawingWand *,const char *), |
| 217 | DrawSetTextUnderColor(DrawingWand *,const PixelWand *), |
cristy | 76fa314 | 2012-04-26 11:30:17 +0000 | [diff] [blame] | 218 | DrawSetViewbox(DrawingWand *,const double,const double,const double, |
| 219 | const double), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 |