File: pixel-wand.html

package info (click to toggle)
imagemagick 7%3A6.2.4.5.dfsg1-0.15%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 29,972 kB
  • ctags: 13,707
  • sloc: ansic: 202,656; cpp: 17,315; sh: 10,363; xml: 5,523; perl: 4,486; makefile: 3,148; tcl: 459
file content (1070 lines) | stat: -rw-r--r-- 31,513 bytes parent folder | download | duplicates (2)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <style type="text/css"><!--
    @import url("../../www/magick.css");
  //--></style>
  <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Wand Methods</title>
  <meta http-equiv="Content-Language" content="en-US" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Reply-to" content="magick-users@imagemagick.org" />
  <meta name="Generator" content="PHP" />
  <meta name="Keywords" content="magickwc, api, for, imagemagick:, pixel, wmethods, ImageMagick, PerlMagick, Magick++, Image, Magick" />
  <meta name="Description" content="ImageMagick (TM) is a free software suite to create, edit and compose bitmap images. It can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and Bézier curves can be added to images and stretched and rotated.  ImageMagick is free software: it is delivered with full source code and can be freely used, copied, modified and distributed. Its license is compatible with the GPL. It runs on all major operating systems.  Most of the functionality of ImageMagick can be used interactively from the command line; more often, however, the features are used from programs written in the programming languages Perl, C, C++, Python, PHP, Ruby or Java, for which ready-made ImageMagick interfaces (PerlMagick, Magick++, PythonMagick, MagickWand for PHP, RubyMagick, and JMagick) are available. This makes it possible to modify or create images automatically and dynamically.  ImageMagick supports many image formats (over 90 major formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF." />
  <meta name="Rating" content="GENERAL" />
  <meta name="Robots" content="ALL" />
  <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-2005 ImageMagick Studio LLC" />
  <meta name="Distribution" content="Global" />
  <link rel="shortcut icon" href="/../images/wand.ico"  type="image/x-icon" />
</head>

<body id="www-imagemagick-org">
  <table width="100%" id="titlebar" bgcolor="#f5f5f5" cellpadding="0" cellspacing="0" border="0" summary="ImageMagick">
    <tbody>
      <tr valign="top">
        <td align="left"><a href="../../index.html"><img id="titlebar-west" src="../../images/script.png" alt="[ImageMagick]" width="202" height="118" border="0" name="titlebar-west" /></a></td>
        <td width="35%"><br /></td>
        <td align="left"><a href="http://www.imagemagick.org/" target="504608024"><img id="titlebar-west" src="../../images/sponsor.jpg" alt="[sponsor]" border="0" vspace="28" name="titlebar-west" /></a></td>
        <td width="65%"><br /></td>
        <td bgcolor="white" align="right"><a href="../../index.html"><img src="../../images/sprite.jpg" alt="" width="114" height="118" border="0" name="titlebar-east" /></a></td>
        <td bgcolor="white" align="right"><a href="../../index.html"><img id="titlebar-east" src="../../images/logo.jpg" alt="" width="114" height="118" border="0" name="titlebar-east" /></a></td>
      </tr>
    </tbody>
  </table>

  <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
  <tbody>

    <tr valign="top" style="height: 100%;">
      <td id="menu" width="1%" height="100%">
      <p><a href="#main">Skip to page contents</a></p>
      <span>[</span>
      <a href="../../index.html">About ImageMagick</a>
      <a href="../../www/command-line-tools.html">Command-line Tools</a>
      <a href="../../www/api.html">Program Interfaces</a>
  <span>]</span><br /><span>[</span>
      <a href="../../www/install-source.html">Install from Source</a>
      <a href="../../www/binary-releases.html">Binary Releases</a>
      <a href="../../www/resources.html">Resources</a>
  <span>]</span><br /><span>[</span>
      <a href="../../www/download.html">Download</a>
  <span>]</span><br /><span>[</span>
      <a href="../../www/links.html">Links</a>
  <span>]</span><br /><br /><span>[</span>
      <a href="../../www/sponsors.html">Sponsors</a>
  <a href="http://www.pcbanter.net/" class="sponsor" target="sponsor">PCbanter Windows<br />XP Help Forum</a><!-- 20050515 -->
      <span>]</span>
      </td>

      <td id="main" valign="top">
<p class="navigation-index">[ <a href="#ClearPixelWand">ClearPixelWand</a> | <a href="#DestroyPixelWand">DestroyPixelWand</a> | <a href="#DestroyPixelWands">DestroyPixelWands</a> | <a href="#IsPixelWandSimilar">IsPixelWandSimilar</a> | <a href="#IsPixelWand">IsPixelWand</a> | <a href="#NewPixelWand">NewPixelWand</a> | <a href="#NewPixelWands">NewPixelWands</a> | <a href="#PixelClearException">PixelClearException</a> | <a href="#PixelGetException">PixelGetException</a> | <a href="#PixelGetAlpha">PixelGetAlpha</a> | <a href="#PixelGetAlphaQuantum">PixelGetAlphaQuantum</a> | <a href="#PixelGetBlack">PixelGetBlack</a> | <a href="#PixelGetBlackQuantum">PixelGetBlackQuantum</a> | <a href="#PixelGetBlue">PixelGetBlue</a> | <a href="#PixelGetBlueQuantum">PixelGetBlueQuantum</a> | <a href="#PixelGetColorAsString">PixelGetColorAsString</a> | <a href="#PixelGetColorCount">PixelGetColorCount</a> | <a href="#PixelGetCyan">PixelGetCyan</a> | <a href="#PixelGetCyanQuantum">PixelGetCyanQuantum</a> | <a href="#PixelGetGreen">PixelGetGreen</a> | <a href="#PixelGetGreenQuantum">PixelGetGreenQuantum</a> | <a href="#PixelGetIndex">PixelGetIndex</a> | <a href="#PixelGetMagenta">PixelGetMagenta</a> | <a href="#PixelGetMagentaQuantum">PixelGetMagentaQuantum</a> | <a href="#PixelGetOpacity">PixelGetOpacity</a> | <a href="#PixelGetOpacityQuantum">PixelGetOpacityQuantum</a> | <a href="#PixelGetQuantumColor">PixelGetQuantumColor</a> | <a href="#PixelGetRed">PixelGetRed</a> | <a href="#PixelGetRedQuantum">PixelGetRedQuantum</a> | <a href="#PixelGetYellow">PixelGetYellow</a> | <a href="#PixelGetYellowQuantum">PixelGetYellowQuantum</a> | <a href="#PixelSetAlpha">PixelSetAlpha</a> | <a href="#PixelSetAlphaQuantum">PixelSetAlphaQuantum</a> | <a href="#PixelSetBlack">PixelSetBlack</a> | <a href="#PixelSetBlackQuantum">PixelSetBlackQuantum</a> | <a href="#PixelSetBlue">PixelSetBlue</a> | <a href="#PixelSetBlueQuantum">PixelSetBlueQuantum</a> | <a href="#PixelSetColor">PixelSetColor</a> | <a href="#PixelSetColorCount">PixelSetColorCount</a> | <a href="#PixelSetCyan">PixelSetCyan</a> | <a href="#PixelSetCyanQuantum">PixelSetCyanQuantum</a> | <a href="#PixelSetGreen">PixelSetGreen</a> | <a href="#PixelSetGreenQuantum">PixelSetGreenQuantum</a> | <a href="#PixelSetIndex">PixelSetIndex</a> | <a href="#PixelSetMagenta">PixelSetMagenta</a> | <a href="#PixelSetMagentaQuantum">PixelSetMagentaQuantum</a> | <a href="#PixelSetOpacity">PixelSetOpacity</a> | <a href="#PixelSetOpacityQuantum">PixelSetOpacityQuantum</a> | <a href="#PixelSetQuantumColor">PixelSetQuantumColor</a> | <a href="#PixelSetRed">PixelSetRed</a> | <a href="#PixelSetRedQuantum">PixelSetRedQuantum</a> | <a href="#PixelSetYellow">PixelSetYellow</a> | <a href="#PixelSetYellowQuantum">PixelSetYellowQuantum</a> ]</p>

<div style="margin: auto;">
  <h2><a name="ClearPixelWand">ClearPixelWand</a></h2>
</div>

<p>ClearPixelWand() clears resources associated with the wand.</p>

<p>The format of the ClearPixelWand method is:</p>

<pre class="code">
  void ClearPixelWand(PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>


<div style="margin: auto;">
  <h2><a name="DestroyPixelWand">DestroyPixelWand</a></h2>
</div>

<p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>

<p>The format of the DestroyPixelWand method is:</p>

<pre class="code">
  PixelWand *DestroyPixelWand(PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>


<div style="margin: auto;">
  <h2><a name="DestroyPixelWands">DestroyPixelWands</a></h2>
</div>

<p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>

<p>The format of the DestroyPixelWands method is:</p>

<pre class="code">
  PixelWand **DestroyPixelWands(PixelWand **wand,
    const unsigned long number_wands)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>number_wands</h4>
<p>The number of wands.</p>


<div style="margin: auto;">
  <h2><a name="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
</div>

<p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>

<p>The format of the IsPixelWandSimilar method is:</p>

<pre class="code">
  MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
    const double fuzz)
</pre>

<p>A description of each parameter follows:</p>

<h4>p</h4>
<p>The pixel wand.</p>

<h4>q</h4>
<p>The pixel wand.</p>

<h4>fuzz</h4>
<p>any two colors that are less than or equal to this distance squared are consider similar.</p>

<div style="margin: auto;">
  <h2><a name="IsPixelWand">IsPixelWand</a></h2>
</div>

<p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>

<p>The format of the IsPixelWand method is:</p>

<pre class="code">
  MagickBooleanType IsPixelWand(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The magick wand.</p>

<div style="margin: auto;">
  <h2><a name="NewPixelWand">NewPixelWand</a></h2>
</div>

<p>NewPixelWand() returns a new pixel wand.</p>

<p>The format of the NewPixelWand method is:</p>

<pre class="code">
  PixelWand NewPixelWand(void)
</pre>


<div style="margin: auto;">
  <h2><a name="NewPixelWands">NewPixelWands</a></h2>
</div>

<p>NewPixelWands() returns an array of pixel wands.</p>

<p>The format of the NewPixelWand method is:</p>

<pre class="code">
  PixelWand NewPixelWand(const unsigned long number_wands)
</pre>

<p>A description of each parameter follows:</p>

<h4>number_wands</h4>
<p>The number of wands.</p>

<div style="margin: auto;">
  <h2><a name="PixelClearException">PixelClearException</a></h2>
</div>

<p>PixelClearException() clear any exceptions associated with the iterator.</p>

<p>The format of the PixelClearException method is:</p>

<pre class="code">
  MagickBooleanType PixelClearException(PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetException">PixelGetException</a></h2>
</div>

<p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>

<p>The format of the PixelGetException method is:</p>

<pre class="code">
  char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>severity</h4>
<p>The severity of the error is returned here.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetAlpha">PixelGetAlpha</a></h2>
</div>

<p>PixelGetAlpha() returns the normalized alpha color of the pixel wand.</p>

<p>The format of the PixelGetAlpha method is:</p>

<pre class="code">
  double PixelGetAlpha(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
</div>

<p>PixelGetAlphaQuantum() returns the alpha color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetAlphaQuantum method is:</p>

<pre class="code">
  Quantum PixelGetAlphaQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetBlack">PixelGetBlack</a></h2>
</div>

<p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>

<p>The format of the PixelGetBlack method is:</p>

<pre class="code">
  double PixelGetBlack(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
</div>

<p>PixelGetBlackQuantum() returns the black color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetBlackQuantum method is:</p>

<pre class="code">
  Quantum PixelGetBlackQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetBlue">PixelGetBlue</a></h2>
</div>

<p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>

<p>The format of the PixelGetBlue method is:</p>

<pre class="code">
  double PixelGetBlue(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
</div>

<p>PixelGetBlueQuantum() returns the blue color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetBlueQuantum method is:</p>

<pre class="code">
  Quantum PixelGetBlueQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetColorAsString">PixelGetColorAsString</a></h2>
</div>

<p>PixelGetColorAsString() gets the color of the pixel wand.</p>

<p>The format of the PixelGetColorAsString method is:</p>

<pre class="code">
  char *PixelGetColorAsString(PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetColorCount">PixelGetColorCount</a></h2>
</div>

<p>PixelGetColorCount() returns the color count associated with this color.</p>

<p>The format of the PixelGetColorCount method is:</p>

<pre class="code">
  unsigned long PixelGetColorCount(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetCyan">PixelGetCyan</a></h2>
</div>

<p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>

<p>The format of the PixelGetCyan method is:</p>

<pre class="code">
  double PixelGetCyan(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
</div>

<p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetCyanQuantum method is:</p>

<pre class="code">
  Quantum PixelGetCyanQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetGreen">PixelGetGreen</a></h2>
</div>

<p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>

<p>The format of the PixelGetGreen method is:</p>

<pre class="code">
  double PixelGetGreen(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
</div>

<p>PixelGetGreenQuantum() returns the green color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetGreenQuantum method is:</p>

<pre class="code">
  Quantum PixelGetGreenQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetIndex">PixelGetIndex</a></h2>
</div>

<p>PixelGetIndex() returns the colormap index from the pixel wand.</p>

<p>The format of the PixelGetIndex method is:</p>

<pre class="code">
  IndexPacket PixelGetIndex(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetMagenta">PixelGetMagenta</a></h2>
</div>

<p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>

<p>The format of the PixelGetMagenta method is:</p>

<pre class="code">
  double PixelGetMagenta(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
</div>

<p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetMagentaQuantum method is:</p>

<pre class="code">
  Quantum PixelGetMagentaQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetOpacity">PixelGetOpacity</a></h2>
</div>

<p>PixelGetOpacity() returns the normalized opacity color of the pixel wand.</p>

<p>The format of the PixelGetOpacity method is:</p>

<pre class="code">
  double PixelGetOpacity(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetOpacityQuantum">PixelGetOpacityQuantum</a></h2>
</div>

<p>PixelGetOpacityQuantum() returns the opacity color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetOpacityQuantum method is:</p>

<pre class="code">
  Quantum PixelGetOpacityQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetQuantumColor">PixelGetQuantumColor</a></h2>
</div>

<p>PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.</p>

<p>The format of the PixelGetQuantumColor method is:</p>

<pre class="code">
  void PixelGetQuantumColor(PixelWand *wand,PixelPacket *color)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>color</h4>
<p>The pixel wand color is returned here.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetRed">PixelGetRed</a></h2>
</div>

<p>PixelGetRed() returns the normalized red color of the pixel wand.</p>

<p>The format of the PixelGetRed method is:</p>

<pre class="code">
  double PixelGetRed(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
</div>

<p>PixelGetRedQuantum() returns the red color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetRedQuantum method is:</p>

<pre class="code">
  Quantum PixelGetRedQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetYellow">PixelGetYellow</a></h2>
</div>

<p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>

<p>The format of the PixelGetYellow method is:</p>

<pre class="code">
  double PixelGetYellow(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
</div>

<p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.  The color is in the range of [0..QuantumRange]</p>

<p>The format of the PixelGetYellowQuantum method is:</p>

<pre class="code">
  Quantum PixelGetYellowQuantum(const PixelWand *wand)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetAlpha">PixelSetAlpha</a></h2>
</div>

<p>PixelSetAlpha() sets the normalized alpha color of the pixel wand.</p>

<p>The format of the PixelSetAlpha method is:</p>

<pre class="code">
  void PixelSetAlpha(PixelWand *wand,const double opacity)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>opacity</h4>
<p>The opacity color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
</div>

<p>PixelSetAlphaQuantum() sets the alpha color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetAlphaQuantum method is:</p>

<pre class="code">
  void PixelSetAlphaQuantum(PixelWand *wand,
    const Quantum opacity)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>opacity</h4>
<p>The opacity color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetBlack">PixelSetBlack</a></h2>
</div>

<p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>

<p>The format of the PixelSetBlack method is:</p>

<pre class="code">
  void PixelSetBlack(PixelWand *wand,const double black)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>black</h4>
<p>The black color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
</div>

<p>PixelSetBlackQuantum() sets the black color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetBlackQuantum method is:</p>

<pre class="code">
  void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>black</h4>
<p>The black color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetBlue">PixelSetBlue</a></h2>
</div>

<p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>

<p>The format of the PixelSetBlue method is:</p>

<pre class="code">
  void PixelSetBlue(PixelWand *wand,const double blue)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>blue</h4>
<p>The blue color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
</div>

<p>PixelSetBlueQuantum() sets the blue color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetBlueQuantum method is:</p>

<pre class="code">
  void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>blue</h4>
<p>The blue color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetColor">PixelSetColor</a></h2>
</div>

<p>PixelSetColor() sets the color of the pixel wand with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).</p>

<p>The format of the PixelSetColor method is:</p>

<pre class="code">
  MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>color</h4>
<p>The pixel wand color.</p>


<div style="margin: auto;">
  <h2><a name="PixelSetColorCount">PixelSetColorCount</a></h2>
</div>

<p>PixelSetColorCount() sets the color count of the pixel wand.</p>

<p>The format of the PixelSetColorCount method is:</p>

<pre class="code">
  void PixelSetColorCount(PixelWand *wand,const unsigned long count)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>count</h4>
<p>The number of this particular color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetCyan">PixelSetCyan</a></h2>
</div>

<p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>

<p>The format of the PixelSetCyan method is:</p>

<pre class="code">
  void PixelSetCyan(PixelWand *wand,const double cyan)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>cyan</h4>
<p>The cyan color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
</div>

<p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetCyanQuantum method is:</p>

<pre class="code">
  void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>cyan</h4>
<p>The cyan color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetGreen">PixelSetGreen</a></h2>
</div>

<p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>

<p>The format of the PixelSetGreen method is:</p>

<pre class="code">
  void PixelSetGreen(PixelWand *wand,const double green)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>green</h4>
<p>The green color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
</div>

<p>PixelSetGreenQuantum() sets the green color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetGreenQuantum method is:</p>

<pre class="code">
  void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>green</h4>
<p>The green color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetIndex">PixelSetIndex</a></h2>
</div>

<p>PixelSetIndex() sets the colormap index of the pixel wand.</p>

<p>The format of the PixelSetIndex method is:</p>

<pre class="code">
  void PixelSetIndex(PixelWand *wand,const IndexPacket index)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>index</h4>
<p>The colormap index.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetMagenta">PixelSetMagenta</a></h2>
</div>

<p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>

<p>The format of the PixelSetMagenta method is:</p>

<pre class="code">
  void PixelSetMagenta(PixelWand *wand,const double magenta)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>magenta</h4>
<p>The magenta color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
</div>

<p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetMagentaQuantum method is:</p>

<pre class="code">
  void PixelSetMagentaQuantum(PixelWand *wand,
    const Quantum magenta)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>magenta</h4>
<p>The green magenta.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetOpacity">PixelSetOpacity</a></h2>
</div>

<p>PixelSetOpacity() sets the normalized opacity color of the pixel wand.</p>

<p>The format of the PixelSetOpacity method is:</p>

<pre class="code">
  void PixelSetOpacity(PixelWand *wand,const double opacity)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>opacity</h4>
<p>The opacity color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetOpacityQuantum">PixelSetOpacityQuantum</a></h2>
</div>

<p>PixelSetOpacityQuantum() sets the opacity color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetOpacityQuantum method is:</p>

<pre class="code">
  void PixelSetOpacityQuantum(PixelWand *wand,
    const Quantum opacity)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>opacity</h4>
<p>The opacity color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetQuantumColor">PixelSetQuantumColor</a></h2>
</div>

<p>PixelSetQuantumColor() sets the color of the pixel wand.</p>

<p>The format of the PixelSetQuantumColor method is:</p>

<pre class="code">
  PixelSetQuantumColor(PixelWand *wand,const PixelPacket *color)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>color</h4>
<p>Return the pixel wand color here.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetRed">PixelSetRed</a></h2>
</div>

<p>PixelSetRed() sets the normalized red color of the pixel wand.</p>

<p>The format of the PixelSetRed method is:</p>

<pre class="code">
  void PixelSetRed(PixelWand *wand,const double red)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>red</h4>
<p>The red color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
</div>

<p>PixelSetRedQuantum() sets the red color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetRedQuantum method is:</p>

<pre class="code">
  void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>red</h4>
<p>The red color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetYellow">PixelSetYellow</a></h2>
</div>

<p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>

<p>The format of the PixelSetYellow method is:</p>

<pre class="code">
  void PixelSetYellow(PixelWand *wand,const double yellow)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>yellow</h4>
<p>The yellow color.</p>

<div style="margin: auto;">
  <h2><a name="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
</div>

<p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.  The color must be in the range of [0..QuantumRange]</p>

<p>The format of the PixelSetYellowQuantum method is:</p>

<pre class="code">
  void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
</pre>

<p>A description of each parameter follows:</p>

<h4>wand</h4>
<p>The pixel wand.</p>

<h4>yellow</h4>
<p>The yellow color.</p>

      </td>
      <td id="margin" width="1%" height="100%" valign="top" align="right">&nbsp;</td>
    </tr>
  </tbody>
  </table>
  <div id="linkbar">
    <a href="http://redux.imagemagick.org/discussion-server" target="49710885">Discourse Server</a> |
    <a href="../../www/mailing-list.html">Mailing Lists</a> |
    <a href="http://redux.imagemagick.org/gallery" target="2040593770">Image Gallery</a> |
    <a href="http://redux.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi" target="1363325473">ImageMagick Studio</a>
  </div>
  <div>
    <span id="footer-west">&copy; 1999-2005 ImageMagick Studio LLC</span>
  </div>
  <div style="clear: both; margin: 0; width: 100%; "></div>
</body>
</html>