drawing-wand.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickWand drawing wand methods.
  13. */
  14. #ifndef MAGICKWAND_DRAWING_WAND_H
  15. #define MAGICKWAND_DRAWING_WAND_H
  16. #include "wand/pixel-wand.h"
  17. #if defined(__cplusplus) || defined(c_plusplus)
  18. extern "C" {
  19. #endif
  20. typedef struct _DrawingWand
  21. DrawingWand;
  22. extern WandExport AlignType
  23. DrawGetTextAlignment(const DrawingWand *);
  24. extern WandExport char
  25. *DrawGetClipPath(const DrawingWand *),
  26. *DrawGetDensity(const DrawingWand *),
  27. *DrawGetException(const DrawingWand *,ExceptionType *),
  28. *DrawGetFont(const DrawingWand *),
  29. *DrawGetFontFamily(const DrawingWand *),
  30. *DrawGetTextEncoding(const DrawingWand *),
  31. *DrawGetVectorGraphics(DrawingWand *);
  32. extern WandExport ClipPathUnits
  33. DrawGetClipUnits(const DrawingWand *) magick_attribute((__pure__));
  34. extern WandExport DecorationType
  35. DrawGetTextDecoration(const DrawingWand *) magick_attribute((__pure__));
  36. extern WandExport DirectionType
  37. DrawGetTextDirection(const DrawingWand *);
  38. extern WandExport double
  39. DrawGetFillOpacity(const DrawingWand *) magick_attribute((__pure__)),
  40. DrawGetFontSize(const DrawingWand *) magick_attribute((__pure__)),
  41. DrawGetOpacity(const DrawingWand *) magick_attribute((__pure__)),
  42. *DrawGetStrokeDashArray(const DrawingWand *,size_t *),
  43. DrawGetStrokeDashOffset(const DrawingWand *) magick_attribute((__pure__)),
  44. DrawGetStrokeOpacity(const DrawingWand *) magick_attribute((__pure__)),
  45. DrawGetStrokeWidth(const DrawingWand *) magick_attribute((__pure__)),
  46. DrawGetTextKerning(DrawingWand *) magick_attribute((__pure__)),
  47. DrawGetTextInterlineSpacing(DrawingWand *) magick_attribute((__pure__)),
  48. DrawGetTextInterwordSpacing(DrawingWand *) magick_attribute((__pure__));
  49. extern WandExport DrawInfo
  50. *PeekDrawingWand(const DrawingWand *);
  51. extern WandExport DrawingWand
  52. *AcquireDrawingWand(const DrawInfo *,Image *),
  53. *CloneDrawingWand(const DrawingWand *),
  54. *DestroyDrawingWand(DrawingWand *),
  55. *NewDrawingWand(void);
  56. extern WandExport ExceptionType
  57. DrawGetExceptionType(const DrawingWand *);
  58. extern WandExport FillRule
  59. DrawGetClipRule(const DrawingWand *) magick_attribute((__pure__)),
  60. DrawGetFillRule(const DrawingWand *) magick_attribute((__pure__));
  61. extern WandExport GravityType
  62. DrawGetGravity(const DrawingWand *) magick_attribute((__pure__));
  63. extern WandExport LineCap
  64. DrawGetStrokeLineCap(const DrawingWand *) magick_attribute((__pure__));
  65. extern WandExport LineJoin
  66. DrawGetStrokeLineJoin(const DrawingWand *) magick_attribute((__pure__));
  67. extern WandExport MagickBooleanType
  68. DrawClearException(DrawingWand *),
  69. DrawComposite(DrawingWand *,const CompositeOperator,const double,const double,
  70. const double,const double,MagickWand *),
  71. DrawGetFontResolution(const DrawingWand *,double *,double *),
  72. DrawGetStrokeAntialias(const DrawingWand *) magick_attribute((__pure__)),
  73. DrawGetTextAntialias(const DrawingWand *) magick_attribute((__pure__)),
  74. DrawPopPattern(DrawingWand *),
  75. DrawPushPattern(DrawingWand *,const char *,const double,const double,
  76. const double,const double),
  77. DrawRender(DrawingWand *),
  78. DrawSetClipPath(DrawingWand *,const char *),
  79. DrawSetDensity(DrawingWand *,const char *),
  80. DrawSetFillPatternURL(DrawingWand *,const char *),
  81. DrawSetFont(DrawingWand *,const char *),
  82. DrawSetFontFamily(DrawingWand *,const char *),
  83. DrawSetFontResolution(DrawingWand *,const double,const double),
  84. DrawSetStrokeDashArray(DrawingWand *,const size_t,const double *),
  85. DrawSetStrokePatternURL(DrawingWand *,const char *),
  86. DrawSetVectorGraphics(DrawingWand *,const char *),
  87. IsDrawingWand(const DrawingWand *),
  88. PopDrawingWand(DrawingWand *),
  89. PushDrawingWand(DrawingWand *);
  90. extern WandExport StretchType
  91. DrawGetFontStretch(const DrawingWand *);
  92. extern WandExport StyleType
  93. DrawGetFontStyle(const DrawingWand *);
  94. extern WandExport size_t
  95. DrawGetFontWeight(const DrawingWand *) magick_attribute((__pure__)),
  96. DrawGetStrokeMiterLimit(const DrawingWand *) magick_attribute((__pure__));
  97. extern WandExport void
  98. ClearDrawingWand(DrawingWand *),
  99. DrawAffine(DrawingWand *,const AffineMatrix *),
  100. DrawAnnotation(DrawingWand *,const double,const double,const unsigned char *),
  101. DrawArc(DrawingWand *,const double,const double,const double,const double,
  102. const double,const double),
  103. DrawBezier(DrawingWand *,const size_t,const PointInfo *),
  104. DrawGetBorderColor(const DrawingWand *,PixelWand *),
  105. DrawCircle(DrawingWand *,const double,const double,const double,const double),
  106. DrawColor(DrawingWand *,const double,const double,const PaintMethod),
  107. DrawComment(DrawingWand *,const char *),
  108. DrawEllipse(DrawingWand *,const double,const double,const double,const double,
  109. const double,const double),
  110. DrawGetFillColor(const DrawingWand *,PixelWand *),
  111. DrawGetStrokeColor(const DrawingWand *,PixelWand *),
  112. DrawSetTextKerning(DrawingWand *,const double),
  113. DrawSetTextInterlineSpacing(DrawingWand *,const double),
  114. DrawSetTextInterwordSpacing(DrawingWand *,const double),
  115. DrawGetTextUnderColor(const DrawingWand *,PixelWand *),
  116. DrawLine(DrawingWand *,const double, const double,const double,const double),
  117. DrawMatte(DrawingWand *,const double,const double,const PaintMethod),
  118. DrawPathClose(DrawingWand *),
  119. DrawPathCurveToAbsolute(DrawingWand *,const double,const double,const double,
  120. const double,const double,const double),
  121. DrawPathCurveToRelative(DrawingWand *,const double,const double,const double,
  122. const double,const double, const double),
  123. DrawPathCurveToQuadraticBezierAbsolute(DrawingWand *,const double,
  124. const double,const double,const double),
  125. DrawPathCurveToQuadraticBezierRelative(DrawingWand *,const double,
  126. const double,const double,const double),
  127. DrawPathCurveToQuadraticBezierSmoothAbsolute(DrawingWand *,const double,
  128. const double),
  129. DrawPathCurveToQuadraticBezierSmoothRelative(DrawingWand *,const double,
  130. const double),
  131. DrawPathCurveToSmoothAbsolute(DrawingWand *,const double,const double,
  132. const double,const double),
  133. DrawPathCurveToSmoothRelative(DrawingWand *,const double,const double,
  134. const double,const double),
  135. DrawPathEllipticArcAbsolute(DrawingWand *,const double,const double,
  136. const double,const MagickBooleanType,const MagickBooleanType,const double,
  137. const double),
  138. DrawPathEllipticArcRelative(DrawingWand *,const double,const double,
  139. const double,const MagickBooleanType,const MagickBooleanType,const double,
  140. const double),
  141. DrawPathFinish(DrawingWand *),
  142. DrawPathLineToAbsolute(DrawingWand *,const double,const double),
  143. DrawPathLineToRelative(DrawingWand *,const double,const double),
  144. DrawPathLineToHorizontalAbsolute(DrawingWand *,const double),
  145. DrawPathLineToHorizontalRelative(DrawingWand *,const double),
  146. DrawPathLineToVerticalAbsolute(DrawingWand *,const double),
  147. DrawPathLineToVerticalRelative(DrawingWand *,const double),
  148. DrawPathMoveToAbsolute(DrawingWand *,const double,const double),
  149. DrawPathMoveToRelative(DrawingWand *,const double,const double),
  150. DrawPathStart(DrawingWand *),
  151. DrawPoint(DrawingWand *,const double,const double),
  152. DrawPolygon(DrawingWand *,const size_t,const PointInfo *),
  153. DrawPolyline(DrawingWand *,const size_t,const PointInfo *),
  154. DrawPopClipPath(DrawingWand *),
  155. DrawPopDefs(DrawingWand *),
  156. DrawPushClipPath(DrawingWand *,const char *),
  157. DrawPushDefs(DrawingWand *),
  158. DrawRectangle(DrawingWand *,const double,const double,const double,
  159. const double),
  160. DrawResetVectorGraphics(DrawingWand *),
  161. DrawRotate(DrawingWand *,const double),
  162. DrawRoundRectangle(DrawingWand *,double,double,double,double,double,double),
  163. DrawScale(DrawingWand *,const double,const double),
  164. DrawSetBorderColor(DrawingWand *,const PixelWand *),
  165. DrawSetClipRule(DrawingWand *,const FillRule),
  166. DrawSetClipUnits(DrawingWand *,const ClipPathUnits),
  167. DrawSetFillColor(DrawingWand *,const PixelWand *),
  168. DrawSetFillOpacity(DrawingWand *,const double),
  169. DrawSetFillRule(DrawingWand *,const FillRule),
  170. DrawSetFontSize(DrawingWand *,const double),
  171. DrawSetFontStretch(DrawingWand *,const StretchType),
  172. DrawSetFontStyle(DrawingWand *,const StyleType),
  173. DrawSetFontWeight(DrawingWand *,const size_t),
  174. DrawSetGravity(DrawingWand *,const GravityType),
  175. DrawSetOpacity(DrawingWand *,const double),
  176. DrawSetStrokeAntialias(DrawingWand *,const MagickBooleanType),
  177. DrawSetStrokeColor(DrawingWand *,const PixelWand *),
  178. DrawSetStrokeDashOffset(DrawingWand *,const double dashoffset),
  179. DrawSetStrokeLineCap(DrawingWand *,const LineCap),
  180. DrawSetStrokeLineJoin(DrawingWand *,const LineJoin),
  181. DrawSetStrokeMiterLimit(DrawingWand *,const size_t),
  182. DrawSetStrokeOpacity(DrawingWand *, const double),
  183. DrawSetStrokeWidth(DrawingWand *,const double),
  184. DrawSetTextAlignment(DrawingWand *,const AlignType),
  185. DrawSetTextAntialias(DrawingWand *,const MagickBooleanType),
  186. DrawSetTextDecoration(DrawingWand *,const DecorationType),
  187. DrawSetTextDirection(DrawingWand *,const DirectionType),
  188. DrawSetTextEncoding(DrawingWand *,const char *),
  189. DrawSetTextUnderColor(DrawingWand *,const PixelWand *),
  190. DrawSetViewbox(DrawingWand *,ssize_t,ssize_t,ssize_t,ssize_t),
  191. DrawSkewX(DrawingWand *,const double),
  192. DrawSkewY(DrawingWand *,const double),
  193. DrawTranslate(DrawingWand *,const double,const double);
  194. #if defined(__cplusplus) || defined(c_plusplus)
  195. }
  196. #endif
  197. #endif