forked from ImageMagick/ImageMagick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrawing-wand.php
3811 lines (2688 loc) · 107 KB
/
drawing-wand.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
<title>ImageMagick: MagickWand, C API for ImageMagick: Drawing Wand Methods</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="application-name" content="ImageMagick"/>
<meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/>
<meta name="application-url" content="http://www.imagemagick.org"/>
<meta name="generator" content="PHP"/>
<meta name="keywords" content="magickwc, api, for, imagemagick:, drawing, wmethods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
<meta name="rating" content="GENERAL"/>
<meta name="robots" content="INDEX, FOLLOW"/>
<meta name="generator" content="ImageMagick Studio LLC"/>
<meta name="author" content="ImageMagick Studio LLC"/>
<meta name="revisit-after" content="2 DAYS"/>
<meta name="resource-type" content="document"/>
<meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC"/>
<meta name="distribution" content="Global"/>
<meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
<link rel="icon" href="../image/wand.png">
<link rel="shortcut icon" href="../image/wand.ico">
<link rel="stylesheet" href="../css/magick.php">
</head>
<body>
<div class="main">
<div class="magick-masthead">
<div class="container">
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3129977114552745"
data-ad-slot="6345125851"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<nav class="magick-nav">
<a class="magick-nav-item " href="../index.php">Home</a>
<a class="magick-nav-item " href="../script/binary-releases.php">Download</a>
<a class="magick-nav-item " href="../script/command-line-tools.php">Tools</a>
<a class="magick-nav-item " href="../script/command-line-options.php">Options</a>
<a class="magick-nav-item " href="../script/resources.php">Resources</a>
<a class="magick-nav-item " href="../script/api.php">Develop</a>
<a class="magick-nav-item " href="../script/search.php">Search</a>
<a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
</nav>
</div>
</div>
<div class="container">
<div class="magick-header">
<p class="text-center"><a href="drawing-wand.php#ClearDrawingWand">ClearDrawingWand</a> • <a href="drawing-wand.php#CloneDrawingWand">CloneDrawingWand</a> • <a href="drawing-wand.php#DestroyDrawingWand">DestroyDrawingWand</a> • <a href="drawing-wand.php#DrawAffine">DrawAffine</a> • <a href="drawing-wand.php#DrawAlpha">DrawAlpha</a> • <a href="drawing-wand.php#DrawAnnotation">DrawAnnotation</a> • <a href="drawing-wand.php#DrawArc">DrawArc</a> • <a href="drawing-wand.php#DrawBezier">DrawBezier</a> • <a href="drawing-wand.php#DrawCircle">DrawCircle</a> • <a href="drawing-wand.php#DrawClearException">DrawClearException</a> • <a href="drawing-wand.php#DrawCloneExceptionInfo">DrawCloneExceptionInfo</a> • <a href="drawing-wand.php#DrawComposite">DrawComposite</a> • <a href="drawing-wand.php#DrawColor">DrawColor</a> • <a href="drawing-wand.php#DrawComment">DrawComment</a> • <a href="drawing-wand.php#DrawEllipse">DrawEllipse</a> • <a href="drawing-wand.php#DrawGetBorderColor">DrawGetBorderColor</a> • <a href="drawing-wand.php#DrawGetClipPath">DrawGetClipPath</a> • <a href="drawing-wand.php#DrawGetClipRule">DrawGetClipRule</a> • <a href="drawing-wand.php#DrawGetClipUnits">DrawGetClipUnits</a> • <a href="drawing-wand.php#DrawGetDensity">DrawGetDensity</a> • <a href="drawing-wand.php#DrawGetException">DrawGetException</a> • <a href="drawing-wand.php#DrawGetExceptionType">DrawGetExceptionType</a> • <a href="drawing-wand.php#DrawGetFillColor">DrawGetFillColor</a> • <a href="drawing-wand.php#DrawGetFillOpacity">DrawGetFillOpacity</a> • <a href="drawing-wand.php#DrawGetFillRule">DrawGetFillRule</a> • <a href="drawing-wand.php#DrawGetFont">DrawGetFont</a> • <a href="drawing-wand.php#DrawGetFontFamily">DrawGetFontFamily</a> • <a href="drawing-wand.php#DrawGetFontResolution">DrawGetFontResolution</a> • <a href="drawing-wand.php#DrawGetFontSize">DrawGetFontSize</a> • <a href="drawing-wand.php#DrawGetFontStretch">DrawGetFontStretch</a> • <a href="drawing-wand.php#DrawGetFontStyle">DrawGetFontStyle</a> • <a href="drawing-wand.php#DrawGetFontWeight">DrawGetFontWeight</a> • <a href="drawing-wand.php#DrawGetGravity">DrawGetGravity</a> • <a href="drawing-wand.php#DrawGetOpacity">DrawGetOpacity</a> • <a href="drawing-wand.php#DrawGetStrokeAntialias">DrawGetStrokeAntialias</a> • <a href="drawing-wand.php#DrawGetStrokeColor">DrawGetStrokeColor</a> • <a href="drawing-wand.php#DrawGetStrokeDashArray">DrawGetStrokeDashArray</a> • <a href="drawing-wand.php#DrawGetStrokeDashOffset">DrawGetStrokeDashOffset</a> • <a href="drawing-wand.php#DrawGetStrokeLineCap">DrawGetStrokeLineCap</a> • <a href="drawing-wand.php#DrawGetStrokeLineJoin">DrawGetStrokeLineJoin</a> • <a href="drawing-wand.php#DrawGetStrokeMiterLimit">DrawGetStrokeMiterLimit</a> • <a href="drawing-wand.php#DrawGetStrokeOpacity">DrawGetStrokeOpacity</a> • <a href="drawing-wand.php#DrawGetStrokeWidth">DrawGetStrokeWidth</a> • <a href="drawing-wand.php#DrawGetTextAlignment">DrawGetTextAlignment</a> • <a href="drawing-wand.php#DrawGetTextAntialias">DrawGetTextAntialias</a> • <a href="drawing-wand.php#DrawGetTextDecoration">DrawGetTextDecoration</a> • <a href="drawing-wand.php#DrawGetTextDirection">DrawGetTextDirection</a> • <a href="drawing-wand.php#DrawGetTextEncoding">DrawGetTextEncoding</a> • <a href="drawing-wand.php#DrawGetTextKerning">DrawGetTextKerning</a> • <a href="drawing-wand.php#DrawGetTextInterlineSpacing">DrawGetTextInterlineSpacing</a> • <a href="drawing-wand.php#DrawGetTextInterwordSpacing">DrawGetTextInterwordSpacing</a> • <a href="drawing-wand.php#DrawGetVectorGraphics">DrawGetVectorGraphics</a> • <a href="drawing-wand.php#DrawGetTextUnderColor">DrawGetTextUnderColor</a> • <a href="drawing-wand.php#DrawLine">DrawLine</a> • <a href="drawing-wand.php#DrawPathClose">DrawPathClose</a> • <a href="drawing-wand.php#DrawPathCurveToAbsolute">DrawPathCurveToAbsolute</a> • <a href="drawing-wand.php#DrawPathCurveToRelative">DrawPathCurveToRelative</a> • <a href="drawing-wand.php#DrawPathCurveToQuadraticBezierAbsolute">DrawPathCurveToQuadraticBezierAbsolute</a> • <a href="drawing-wand.php#DrawPathCurveToQuadraticBezierRelative">DrawPathCurveToQuadraticBezierRelative</a> • <a href="drawing-wand.php#DrawPathCurveToQuadraticBezierSmoothAbsolute">DrawPathCurveToQuadraticBezierSmoothAbsolute</a> • <a href="drawing-wand.php#DrawPathCurveToQuadraticBezierSmoothRelative">DrawPathCurveToQuadraticBezierSmoothRelative</a> • <a href="drawing-wand.php#DrawPathCurveToSmoothAbsolute">DrawPathCurveToSmoothAbsolute</a> • <a href="drawing-wand.php#DrawPathCurveToSmoothRelative">DrawPathCurveToSmoothRelative</a> • <a href="drawing-wand.php#DrawPathEllipticArcAbsolute">DrawPathEllipticArcAbsolute</a> • <a href="drawing-wand.php#DrawPathEllipticArcRelative">DrawPathEllipticArcRelative</a> • <a href="drawing-wand.php#DrawPathFinish">DrawPathFinish</a> • <a href="drawing-wand.php#DrawPathLineToAbsolute">DrawPathLineToAbsolute</a> • <a href="drawing-wand.php#DrawPathLineToRelative">DrawPathLineToRelative</a> • <a href="drawing-wand.php#DrawPathLineToHorizontalAbsolute">DrawPathLineToHorizontalAbsolute</a> • <a href="drawing-wand.php#DrawPathLineToHorizontalRelative">DrawPathLineToHorizontalRelative</a> • <a href="drawing-wand.php#DrawPathLineToVerticalAbsolute">DrawPathLineToVerticalAbsolute</a> • <a href="drawing-wand.php#DrawPathLineToVerticalRelative">DrawPathLineToVerticalRelative</a> • <a href="drawing-wand.php#DrawPathMoveToAbsolute">DrawPathMoveToAbsolute</a> • <a href="drawing-wand.php#DrawPathMoveToRelative">DrawPathMoveToRelative</a> • <a href="drawing-wand.php#DrawPathStart">DrawPathStart</a> • <a href="drawing-wand.php#DrawPoint">DrawPoint</a> • <a href="drawing-wand.php#DrawPolygon">DrawPolygon</a> • <a href="drawing-wand.php#DrawPolyline">DrawPolyline</a> • <a href="drawing-wand.php#DrawPopClipPath">DrawPopClipPath</a> • <a href="drawing-wand.php#DrawPopDefs">DrawPopDefs</a> • <a href="drawing-wand.php#DrawPopPattern">DrawPopPattern</a> • <a href="drawing-wand.php#DrawPushClipPath">DrawPushClipPath</a> • <a href="drawing-wand.php#DrawPushDefs">DrawPushDefs</a> • <a href="drawing-wand.php#DrawPushPattern">DrawPushPattern</a> • <a href="drawing-wand.php#DrawRectangle">DrawRectangle</a> • <a href="drawing-wand.php#DrawResetVectorGraphics">DrawResetVectorGraphics</a> • <a href="drawing-wand.php#DrawRotate">DrawRotate</a> • <a href="drawing-wand.php#DrawRoundRectangle">DrawRoundRectangle</a> • <a href="drawing-wand.php#DrawScale">DrawScale</a> • <a href="drawing-wand.php#DrawSetBorderColor">DrawSetBorderColor</a> • <a href="drawing-wand.php#DrawSetClipPath">DrawSetClipPath</a> • <a href="drawing-wand.php#DrawSetClipRule">DrawSetClipRule</a> • <a href="drawing-wand.php#DrawSetClipUnits">DrawSetClipUnits</a> • <a href="drawing-wand.php#DrawSetDensity">DrawSetDensity</a> • <a href="drawing-wand.php#DrawSetFillColor">DrawSetFillColor</a> • <a href="drawing-wand.php#DrawSetFillOpacity">DrawSetFillOpacity</a> • <a href="drawing-wand.php#DrawSetFontResolution">DrawSetFontResolution</a> • <a href="drawing-wand.php#DrawSetOpacity">DrawSetOpacity</a> • <a href="drawing-wand.php#DrawSetFillPatternURL">DrawSetFillPatternURL</a> • <a href="drawing-wand.php#DrawSetFillRule">DrawSetFillRule</a> • <a href="drawing-wand.php#DrawSetFont">DrawSetFont</a> • <a href="drawing-wand.php#DrawSetFontFamily">DrawSetFontFamily</a> • <a href="drawing-wand.php#DrawSetFontSize">DrawSetFontSize</a> • <a href="drawing-wand.php#DrawSetFontStretch">DrawSetFontStretch</a> • <a href="drawing-wand.php#DrawSetFontStyle">DrawSetFontStyle</a> • <a href="drawing-wand.php#DrawSetFontWeight">DrawSetFontWeight</a> • <a href="drawing-wand.php#DrawSetGravity">DrawSetGravity</a> • <a href="drawing-wand.php#DrawSetStrokeColor">DrawSetStrokeColor</a> • <a href="drawing-wand.php#DrawSetStrokePatternURL">DrawSetStrokePatternURL</a> • <a href="drawing-wand.php#DrawSetStrokeAntialias">DrawSetStrokeAntialias</a> • <a href="drawing-wand.php#DrawSetStrokeDashArray">DrawSetStrokeDashArray</a> • <a href="drawing-wand.php#DrawSetStrokeDashOffset">DrawSetStrokeDashOffset</a> • <a href="drawing-wand.php#DrawSetStrokeLineCap">DrawSetStrokeLineCap</a> • <a href="drawing-wand.php#DrawSetStrokeLineJoin">DrawSetStrokeLineJoin</a> • <a href="drawing-wand.php#DrawSetStrokeMiterLimit">DrawSetStrokeMiterLimit</a> • <a href="drawing-wand.php#DrawSetStrokeOpacity">DrawSetStrokeOpacity</a> • <a href="drawing-wand.php#DrawSetStrokeWidth">DrawSetStrokeWidth</a> • <a href="drawing-wand.php#DrawSetTextAlignment">DrawSetTextAlignment</a> • <a href="drawing-wand.php#DrawSetTextAntialias">DrawSetTextAntialias</a> • <a href="drawing-wand.php#DrawSetTextDecoration">DrawSetTextDecoration</a> • <a href="drawing-wand.php#DrawSetTextEncoding">DrawSetTextEncoding</a> • <a href="drawing-wand.php#DrawSetTextKerning">DrawSetTextKerning</a> • <a href="drawing-wand.php#DrawSetTextInterlineSpacing">DrawSetTextInterlineSpacing</a> • <a href="drawing-wand.php#DrawSetTextInterwordSpacing">DrawSetTextInterwordSpacing</a> • <a href="drawing-wand.php#DrawSetTextUnderColor">DrawSetTextUnderColor</a> • <a href="drawing-wand.php#DrawSetVectorGraphics">DrawSetVectorGraphics</a> • <a href="drawing-wand.php#DrawSkewX">DrawSkewX</a> • <a href="drawing-wand.php#DrawSkewY">DrawSkewY</a> • <a href="drawing-wand.php#DrawTranslate">DrawTranslate</a> • <a href="drawing-wand.php#DrawSetViewbox">DrawSetViewbox</a> • <a href="drawing-wand.php#IsDrawingWand">IsDrawingWand</a> • <a href="drawing-wand.php#NewDrawingWand">NewDrawingWand</a> • <a href="drawing-wand.php#PeekDrawingWand">PeekDrawingWand</a> • <a href="drawing-wand.php#PopDrawingWand">PopDrawingWand</a> • <a href="drawing-wand.php#PushDrawingWand">PushDrawingWand</a></p>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="ClearDrawingWand">ClearDrawingWand</a></h2>
<p>ClearDrawingWand() clears resources associated with the drawing wand.</p>
<p>The format of the ClearDrawingWand method is:</p>
<pre class="text">
void ClearDrawingWand(DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand to clear. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="CloneDrawingWand">CloneDrawingWand</a></h2>
<p>CloneDrawingWand() makes an exact copy of the specified wand.</p>
<p>The format of the CloneDrawingWand method is:</p>
<pre class="text">
DrawingWand *CloneDrawingWand(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the magick wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DestroyDrawingWand">DestroyDrawingWand</a></h2>
<p>DestroyDrawingWand() frees all resources associated with the drawing wand. Once the drawing wand has been freed, it should not be used and further unless it re-allocated.</p>
<p>The format of the DestroyDrawingWand method is:</p>
<pre class="text">
DrawingWand *DestroyDrawingWand(DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand to destroy. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAffine">DrawAffine</a></h2>
<p>DrawAffine() adjusts the current affine transformation matrix with the specified affine transformation matrix. Note that the current affine transform is adjusted rather than replaced.</p>
<p>The format of the DrawAffine method is:</p>
<pre class="text">
void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>Drawing wand </dd>
<dd> </dd>
<dt>affine</dt>
<dd>Affine matrix parameters </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAlpha">DrawAlpha</a></h2>
<p>DrawAlpha() paints on the image's alpha channel in order to set effected pixels to transparent. to influence the alpha of pixels. The available paint methods are:</p>
<pre class="text">
PointMethod: Select the target pixel
ReplaceMethod: Select any pixel that matches the target pixel.
FloodfillMethod: Select the target pixel and matching neighbors.
FillToBorderMethod: Select the target pixel and neighbors not matching
border color.
ResetMethod: Select all pixels.
</pre>
<p>The format of the DrawAlpha method is:</p>
<pre class="text">
void DrawAlpha(DrawingWand *wand,const double x,const double y,
const PaintMethod paint_method)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>x</dt>
<dd>x ordinate </dd>
<dd> </dd>
<dt>y</dt>
<dd>y ordinate </dd>
<dd> </dd>
<dt>paint_method</dt>
<dd>paint method. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawAnnotation">DrawAnnotation</a></h2>
<p>DrawAnnotation() draws text on the image.</p>
<p>The format of the DrawAnnotation method is:</p>
<pre class="text">
void DrawAnnotation(DrawingWand *wand,const double x,
const double y,const unsigned char *text)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>x</dt>
<dd>x ordinate to left of text </dd>
<dd> </dd>
<dt>y</dt>
<dd>y ordinate to text baseline </dd>
<dd> </dd>
<dt>text</dt>
<dd>text to draw </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawArc">DrawArc</a></h2>
<p>DrawArc() draws an arc falling within a specified bounding rectangle on the image.</p>
<p>The format of the DrawArc method is:</p>
<pre class="text">
void DrawArc(DrawingWand *wand,const double sx,const double sy,
const double ex,const double ey,const double sd,const double ed)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>sx</dt>
<dd>starting x ordinate of bounding rectangle </dd>
<dd> </dd>
<dt>sy</dt>
<dd>starting y ordinate of bounding rectangle </dd>
<dd> </dd>
<dt>ex</dt>
<dd>ending x ordinate of bounding rectangle </dd>
<dd> </dd>
<dt>ey</dt>
<dd>ending y ordinate of bounding rectangle </dd>
<dd> </dd>
<dt>sd</dt>
<dd>starting degrees of rotation </dd>
<dd> </dd>
<dt>ed</dt>
<dd>ending degrees of rotation </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawBezier">DrawBezier</a></h2>
<p>DrawBezier() draws a bezier curve through a set of points on the image.</p>
<p>The format of the DrawBezier method is:</p>
<pre class="text">
void DrawBezier(DrawingWand *wand,
const size_t number_coordinates,const PointInfo *coordinates)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>number_coordinates</dt>
<dd>number of coordinates </dd>
<dd> </dd>
<dt>coordinates</dt>
<dd>coordinates </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawCircle">DrawCircle</a></h2>
<p>DrawCircle() draws a circle on the image.</p>
<p>The format of the DrawCircle method is:</p>
<pre class="text">
void DrawCircle(DrawingWand *wand,const double ox,
const double oy,const double px, const double py)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>ox</dt>
<dd>origin x ordinate </dd>
<dd> </dd>
<dt>oy</dt>
<dd>origin y ordinate </dd>
<dd> </dd>
<dt>px</dt>
<dd>perimeter x ordinate </dd>
<dd> </dd>
<dt>py</dt>
<dd>perimeter y ordinate </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawClearException">DrawClearException</a></h2>
<p>DrawClearException() clear any exceptions associated with the wand.</p>
<p>The format of the DrawClearException method is:</p>
<pre class="text">
MagickBooleanType DrawClearException(DrawWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawCloneExceptionInfo">DrawCloneExceptionInfo</a></h2>
<p>DrawCloneExceptionInfo() clones the ExceptionInfo structure within the wand.</p>
<p>The format of the DrawCloneExceptionInfo method is:</p>
<pre class="text">
ExceptionInfo *DrawCloneExceptionInfo(DrawWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComposite">DrawComposite</a></h2>
<p>DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.</p>
<p>The format of the DrawComposite method is:</p>
<pre class="text">
MagickBooleanType DrawComposite(DrawingWand *wand,
const CompositeOperator compose,const double x,
const double y,const double width,const double height,
MagickWand *magick_wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>compose</dt>
<dd>composition operator </dd>
<dd> </dd>
<dt>x</dt>
<dd>x ordinate of top left corner </dd>
<dd> </dd>
<dt>y</dt>
<dd>y ordinate of top left corner </dd>
<dd> </dd>
<dt>width</dt>
<dd>Width to resize image to prior to compositing. Specify zero to use existing width. </dd>
<dd> </dd>
<dt>height</dt>
<dd>Height to resize image to prior to compositing. Specify zero to use existing height. </dd>
<dd> </dd>
<dt>magick_wand</dt>
<dd>Image to composite is obtained from this wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawColor">DrawColor</a></h2>
<p>DrawColor() draws color on image using the current fill color, starting at specified position, and using specified paint method. The available paint methods are:</p>
<pre class="text">
PointMethod: Recolors the target pixel
ReplaceMethod: Recolor any pixel that matches the target pixel.
FloodfillMethod: Recolors target pixels and matching neighbors.
ResetMethod: Recolor all pixels.
</pre>
<p>The format of the DrawColor method is:</p>
<pre class="text">
void DrawColor(DrawingWand *wand,const double x,const double y,
const PaintMethod paint_method)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>x</dt>
<dd>x ordinate. </dd>
<dd> </dd>
<dt>y</dt>
<dd>y ordinate. </dd>
<dd> </dd>
<dt>paint_method</dt>
<dd>paint method. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawComment">DrawComment</a></h2>
<p>DrawComment() adds a comment to a vector output stream.</p>
<p>The format of the DrawComment method is:</p>
<pre class="text">
void DrawComment(DrawingWand *wand,const char *comment)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>comment</dt>
<dd>comment text </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawEllipse">DrawEllipse</a></h2>
<p>DrawEllipse() draws an ellipse on the image.</p>
<p>The format of the DrawEllipse method is:</p>
<pre class="text">
void DrawEllipse(DrawingWand *wand,const double ox,const double oy,
const double rx,const double ry,const double start,const double end)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>ox</dt>
<dd>origin x ordinate </dd>
<dd> </dd>
<dt>oy</dt>
<dd>origin y ordinate </dd>
<dd> </dd>
<dt>rx</dt>
<dd>radius in x </dd>
<dd> </dd>
<dt>ry</dt>
<dd>radius in y </dd>
<dd> </dd>
<dt>start</dt>
<dd>starting rotation in degrees </dd>
<dd> </dd>
<dt>end</dt>
<dd>ending rotation in degrees </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetBorderColor">DrawGetBorderColor</a></h2>
<p>DrawGetBorderColor() returns the border color used for drawing bordered objects.</p>
<p>The format of the DrawGetBorderColor method is:</p>
<pre class="text">
void DrawGetBorderColor(const DrawingWand *wand,
PixelWand *border_color)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>border_color</dt>
<dd>Return the border color. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipPath">DrawGetClipPath</a></h2>
<p>DrawGetClipPath() obtains the current clipping path ID. The value returned must be deallocated by the user when it is no longer needed.</p>
<p>The format of the DrawGetClipPath method is:</p>
<pre class="text">
char *DrawGetClipPath(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipRule">DrawGetClipRule</a></h2>
<p>DrawGetClipRule() returns the current polygon fill rule to be used by the clipping path.</p>
<p>The format of the DrawGetClipRule method is:</p>
<pre class="text">
FillRule DrawGetClipRule(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetClipUnits">DrawGetClipUnits</a></h2>
<p>DrawGetClipUnits() returns the interpretation of clip path units.</p>
<p>The format of the DrawGetClipUnits method is:</p>
<pre class="text">
ClipPathUnits DrawGetClipUnits(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetDensity">DrawGetDensity</a></h2>
<p>DrawGetDensity() obtains the vertical and horizontal resolution. The value returned must be deallocated by the user when it is no longer needed.</p>
<p>The format of the DrawGetDensity method is:</p>
<pre class="text">
char *DrawGetDensity(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetException">DrawGetException</a></h2>
<p>DrawGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
<p>The format of the DrawGetException method is:</p>
<pre class="text">
char *DrawGetException(const DrawWand *wand,
ExceptionType *severity)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>severity</dt>
<dd>the severity of the error is returned here. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetExceptionType">DrawGetExceptionType</a></h2>
<p>DrawGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
<p>The format of the DrawGetExceptionType method is:</p>
<pre class="text">
ExceptionType DrawGetExceptionType(const DrawWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the magick wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillColor">DrawGetFillColor</a></h2>
<p>DrawGetFillColor() returns the fill color used for drawing filled objects.</p>
<p>The format of the DrawGetFillColor method is:</p>
<pre class="text">
void DrawGetFillColor(const DrawingWand *wand,
PixelWand *fill_color)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
<dt>fill_color</dt>
<dd>Return the fill color. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillOpacity">DrawGetFillOpacity</a></h2>
<p>DrawGetFillOpacity() returns the alpha used when drawing using the fill color or fill texture. Fully opaque is 1.0.</p>
<p>The format of the DrawGetFillOpacity method is:</p>
<pre class="text">
double DrawGetFillOpacity(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFillRule">DrawGetFillRule</a></h2>
<p>DrawGetFillRule() returns the fill rule used while drawing polygons.</p>
<p>The format of the DrawGetFillRule method is:</p>
<pre class="text">
FillRule DrawGetFillRule(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFont">DrawGetFont</a></h2>
<p>DrawGetFont() returns a null-terminaged string specifying the font used when annotating with text. The value returned must be freed by the user when no longer needed.</p>
<p>The format of the DrawGetFont method is:</p>
<pre class="text">
char *DrawGetFont(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontFamily">DrawGetFontFamily</a></h2>
<p>DrawGetFontFamily() returns the font family to use when annotating with text. The value returned must be freed by the user when it is no longer needed.</p>
<p>The format of the DrawGetFontFamily method is:</p>
<pre class="text">
char *DrawGetFontFamily(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontResolution">DrawGetFontResolution</a></h2>
<p>DrawGetFontResolution() gets the image X and Y resolution.</p>
<p>The format of the DrawGetFontResolution method is:</p>
<pre class="text">
MagickBooleanType DrawGetFontResolution(const DrawingWand *wand,
double *x,double *y)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the magick wand. </dd>
<dd> </dd>
<dt>x</dt>
<dd>the x-resolution. </dd>
<dd> </dd>
<dt>y</dt>
<dd>the y-resolution. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontSize">DrawGetFontSize</a></h2>
<p>DrawGetFontSize() returns the font pointsize used when annotating with text.</p>
<p>The format of the DrawGetFontSize method is:</p>
<pre class="text">
double DrawGetFontSize(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStretch">DrawGetFontStretch</a></h2>
<p>DrawGetFontStretch() returns the font stretch used when annotating with text.</p>
<p>The format of the DrawGetFontStretch method is:</p>
<pre class="text">
StretchType DrawGetFontStretch(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontStyle">DrawGetFontStyle</a></h2>
<p>DrawGetFontStyle() returns the font style used when annotating with text.</p>
<p>The format of the DrawGetFontStyle method is:</p>
<pre class="text">
StyleType DrawGetFontStyle(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetFontWeight">DrawGetFontWeight</a></h2>
<p>DrawGetFontWeight() returns the font weight used when annotating with text.</p>
<p>The format of the DrawGetFontWeight method is:</p>
<pre class="text">
size_t DrawGetFontWeight(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetGravity">DrawGetGravity</a></h2>
<p>DrawGetGravity() returns the text placement gravity used when annotating with text.</p>
<p>The format of the DrawGetGravity method is:</p>
<pre class="text">
GravityType DrawGetGravity(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetOpacity">DrawGetOpacity</a></h2>
<p>DrawGetOpacity() returns the alpha used when drawing with the fill or stroke color or texture. Fully opaque is 1.0.</p>
<p>The format of the DrawGetOpacity method is:</p>
<pre class="text">
double DrawGetOpacity(const DrawingWand *wand)
</pre>
<p>A description of each parameter follows:</p>
<dd>
</dd>
<dd> </dd>
<dl class="dl-horizontal">
<dt>wand</dt>
<dd>the drawing wand. </dd>
<dd> </dd>
</dl>
<h2><a href="http://nextgen.imagemagick.org/api/MagickWand/drawing-wand_8c.html" id="DrawGetStrokeAntialias">DrawGetStrokeAntialias</a></h2>
<p>DrawGetStrokeAntialias() returns the current stroke antialias setting. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.</p>
<p>The format of the DrawGetStrokeAntialias method is:</p>