1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
5
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5
6
<meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
6
7
<link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
7
<style type="text/css" media="screen,projection"><!--
8
<style type="text/css" media="all">
8
9
@import url("../../www/magick.css");
10
11
<link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
11
12
<title>ImageMagick: MagickWand, C API for ImageMagick: Deprecated Methods</title>
12
13
<meta http-equiv="Content-Language" content="en-US"/>
44
45
<div class="eastbar">
47
<a href="../../index.html">About ImageMagick</a>
49
<div class="sep"></div>
51
<a href="../../www/command-line-tools.html">Command-line Tools</a>
54
<a href="../../www/command-line-processing.html">Processing</a>
57
<a href="../../www/command-line-options.html">Options</a>
60
<a href="http://www.imagemagick.org/Usage/">Usage</a>
63
<a href="../../www/api.html">Program Interfaces</a>
66
<a href="../../www/magick-wand.html">MagickWand</a>
69
<a href="../../www/magick-core.html">MagickCore</a>
72
<a href="../../www/perl-magick.html">PerlMagick</a>
75
<a href="../../Magick++/">Magick++</a>
78
<a href="../../www/architecture.html">Architecture</a>
48
<a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
50
<div class="sep"></div>
52
<a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
55
<a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
58
<a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
61
<a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
63
<div class="sep"></div>
65
<a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
68
<a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
71
<a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
74
<a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
77
<a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
80
<a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
83
<a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
86
<a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
89
<a title="Program Interface: Magick++" href="../../Magick++/">Magick++</a>
80
91
<div class="sep"></div>
82
<a href="../../www/install-source.html">Install from Source</a>
85
<a href="../../www/install-source.html#unix">Unix</a>
88
<a href="../../www/install-source.html#windows">Windows</a>
93
<a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
96
<a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
99
<a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
90
101
<div class="menu">
91
<a href="../../www/binary-releases.html">Binary Releases</a>
94
<a href="../../www/binary-releases.html#unix">Unix</a>
97
<a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100
<a href="../../www/binary-releases.html#windows">Windows</a>
103
<a href="../../www/resources.html">Resources</a>
105
<div class="sep"></div>
107
<a href="../../www/download.html">Download</a>
109
<div class="sep"></div>
111
<a href="../http://www.imagemagick.org/script/search.php">Search</a>
113
<div class="sep"></div>
115
<a href="../../www/sitemap.html">Site Map</a>
102
<a title="Resources" href="../../www/resources.html">Resources</a>
105
<a title="Architecture" href="../../www/architecture.html">Architecture</a>
108
<a title="Download" href="../../www/download.html">Download</a>
110
<div class="sep"></div>
112
<a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a>
114
<div class="sep"></div>
116
<a title="Site Map"href="../../www/sitemap.html">Site Map</a>
117
118
<div class="sub">
118
<a href="../../www/links.html">Links</a>
119
<a title="Site Map: Links"href="../../www/links.html">Links</a>
120
121
<div class="sep"></div>
121
122
<div class="menu">
122
<a href="../../www/sponsors.html">Sponsors:</a>
123
<a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
124
125
<div class="sponsbox">
125
126
<div class="sponsor">
126
<a href="http://www.online-kredit-index.de">Kredit</a><!-- 201004010120 Buchhorn -->
128
<div class="sponsor">
129
<a href="http://www.blumenversender.com">Blumenversand</a><!-- 201005010120 -->
131
<div class="sponsor">
132
<a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
134
<div class="sponsor">
135
<a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
137
<div class="sponsor">
138
<a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
140
<div class="sponsor">
141
<a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
127
<a title="Sponsor: Webdesign Agentur" href="http://www.ventzke-partner.de">Webdesign Agentur</a><!-- 201101010480 invendio.de-->
129
<div class="sponsor">
130
<a title="Sponsor: LVM Versicherung" href="http://www.neu-reich.de">LVM Versicherung</a><!-- 201101010480 -->
132
<div class="sponsor">
133
<a title="Sponsor: Deko.net" href="http://www.deko.net">Deko.net</a><!-- 201101010600 Peterssen-->
135
<div class="sponsor">
136
<a title="Sponsor: Kredit" href="http://www.online-kredit-index.de">Kredit</a><!-- 201007010120 Buchhorn -->
138
<div class="sponsor">
139
<a title="Sponsor: Druckerei" href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
141
<div class="sponsor">
142
<a title="Sponsor: Druckerei Online" href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
144
<div class="sponsor">
145
<a title="Sponsor: Webdesign" href="http://www.renehornig.com/" title="Webdesign">Webdesign</a><!-- 20110901000240 -->
149
153
<div class="main">
151
<p class="navigation-index">[<a href="#MagickClipPathImage">MagickClipPathImage</a> • <a href="#DrawGetFillAlpha">DrawGetFillAlpha</a> • <a href="#DrawGetStrokeAlpha">DrawGetStrokeAlpha</a> • <a href="#DrawPeekGraphicWand">DrawPeekGraphicWand</a> • <a href="#DrawPopGraphicContext">DrawPopGraphicContext</a> • <a href="#DrawPushGraphicContext">DrawPushGraphicContext</a> • <a href="#DrawSetFillAlpha">DrawSetFillAlpha</a> • <a href="#DrawSetStrokeAlpha">DrawSetStrokeAlpha</a> • <a href="#MagickColorFloodfillImage">MagickColorFloodfillImage</a> • <a href="#MagickDescribeImage">MagickDescribeImage</a> • <a href="#MagickFlattenImages">MagickFlattenImages</a> • <a href="#MagickGetImageAttribute">MagickGetImageAttribute</a> • <a href="#MagickGetImageMatte">MagickGetImageMatte</a> • <a href="#MagickGetImagePixels">MagickGetImagePixels</a> • <a href="#MagickGetImageSize">MagickGetImageSize</a> • <a href="#MagickMapImage">MagickMapImage</a> • <a href="#MagickMatteFloodfillImage">MagickMatteFloodfillImage</a> • <a href="#MagickMosaicImages">MagickMosaicImages</a> • <a href="#MagickOpaqueImage">MagickOpaqueImage</a> • <a href="#MagickPaintFloodfillImage">MagickPaintFloodfillImage</a> • <a href="#MagickPaintOpaqueImage">MagickPaintOpaqueImage</a> • <a href="#MagickPaintTransparentImage">MagickPaintTransparentImage</a> • <a href="#MagickSetImageAttribute">MagickSetImageAttribute</a> • <a href="#MagickSetImageIndex">MagickSetImageIndex</a> • <a href="#MagickTransparentImage">MagickTransparentImage</a> • <a href="#MagickRegionOfInterestImage">MagickRegionOfInterestImage</a> • <a href="#MagickSetImagePixels">MagickSetImagePixels</a> • <a href="#MagickWriteImageBlob">MagickWriteImageBlob</a> • <a href="#PixelGetNextRow">PixelGetNextRow</a> • <a href="#PixelIteratorGetException">PixelIteratorGetException</a>]</p>
155
<p class="navigation-index">[<a href="#MagickAverageImages">MagickAverageImages</a> • <a href="#MagickClipPathImage">MagickClipPathImage</a> • <a href="#DrawGetFillAlpha">DrawGetFillAlpha</a> • <a href="#DrawGetStrokeAlpha">DrawGetStrokeAlpha</a> • <a href="#DrawPeekGraphicWand">DrawPeekGraphicWand</a> • <a href="#DrawPopGraphicContext">DrawPopGraphicContext</a> • <a href="#DrawPushGraphicContext">DrawPushGraphicContext</a> • <a href="#DrawSetFillAlpha">DrawSetFillAlpha</a> • <a href="#DrawSetStrokeAlpha">DrawSetStrokeAlpha</a> • <a href="#MagickColorFloodfillImage">MagickColorFloodfillImage</a> • <a href="#MagickDescribeImage">MagickDescribeImage</a> • <a href="#MagickFlattenImages">MagickFlattenImages</a> • <a href="#MagickGetImageAttribute">MagickGetImageAttribute</a> • <a href="#MagickGetImageMatte">MagickGetImageMatte</a> • <a href="#MagickGetImagePixels">MagickGetImagePixels</a> • <a href="#MagickGetImageSize">MagickGetImageSize</a> • <a href="#MagickMapImage">MagickMapImage</a> • <a href="#MagickMatteFloodfillImage">MagickMatteFloodfillImage</a> • <a href="#MagickMaximumImages">MagickMaximumImages</a> • <a href="#MagickMinimumImages">MagickMinimumImages</a> • <a href="#MagickMosaicImages">MagickMosaicImages</a> • <a href="#MagickOpaqueImage">MagickOpaqueImage</a> • <a href="#MagickPaintFloodfillImage">MagickPaintFloodfillImage</a> • <a href="#MagickPaintOpaqueImage">MagickPaintOpaqueImage</a> • <a href="#MagickPaintTransparentImage">MagickPaintTransparentImage</a> • <a href="#MagickRecolorImage">MagickRecolorImage</a> • <a href="#MagickSetImageAttribute">MagickSetImageAttribute</a> • <a href="#MagickSetImageIndex">MagickSetImageIndex</a> • <a href="#MagickTransparentImage">MagickTransparentImage</a> • <a href="#MagickRegionOfInterestImage">MagickRegionOfInterestImage</a> • <a href="#MagickSetImagePixels">MagickSetImagePixels</a> • <a href="#MagickWriteImageBlob">MagickWriteImageBlob</a> • <a href="#PixelGetNextRow">PixelGetNextRow</a> • <a href="#PixelIteratorGetException">PixelIteratorGetException</a>]</p>
157
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
158
_8c.html" target="source" name="MagickAverageImages">MagickAverageImages</a></h2>
159
<div class="doc-section">
161
<p>MagickAverageImages() average a set of images.</p></ol>
163
<p>The format of the MagickAverageImages method is:</p>
166
MagickWand *MagickAverageImages(MagickWand *wand)
169
<p>A description of each parameter follows:</p></ol>
172
<ol><p>the magick wand.</p></ol>
153
175
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
154
176
_8c.html" target="source" name="MagickClipPathImage">MagickClipPathImage</a></h2>
155
177
<div class="doc-section">
417
439
_8c.html" target="source" name="MagickGetImagePixels">MagickGetImagePixels</a></h2>
418
440
<div class="doc-section">
420
<p>MagickGetImagePixels() extracts pixel data from an image and returns it to you. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered. The data is returned as char, short int, int, long, float, or double in the order specified by map.</p></ol>
442
<p>MagickGetImagePixels() extracts pixel data from an image and returns it to you. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered. The data is returned as char, short int, int, ssize_t, float, or double in the order specified by map.</p></ol>
422
444
<p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
430
452
<pre class="code">
431
453
MagickBooleanType MagickGetImagePixels(MagickWand *wand,
432
const long x,const long y,const unsigned long columns,
433
const unsigned long rows,const char *map,const StorageType storage,
454
const ssize_t x,const ssize_t y,const size_t columns,
455
const size_t rows,const char *map,const StorageType storage,
534
556
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
557
_8c.html" target="source" name="MagickMaximumImages">MagickMaximumImages</a></h2>
558
<div class="doc-section">
560
<p>MagickMaximumImages() returns the maximum intensity of an image sequence.</p></ol>
562
<p>The format of the MagickMaximumImages method is:</p>
565
MagickWand *MagickMaximumImages(MagickWand *wand)
568
<p>A description of each parameter follows:</p></ol>
571
<ol><p>the magick wand.</p></ol>
574
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
575
_8c.html" target="source" name="MagickMinimumImages">MagickMinimumImages</a></h2>
576
<div class="doc-section">
578
<p>MagickMinimumImages() returns the minimum intensity of an image sequence.</p></ol>
580
<p>The format of the MagickMinimumImages method is:</p>
583
MagickWand *MagickMinimumImages(MagickWand *wand)
586
<p>A description of each parameter follows:</p></ol>
589
<ol><p>the magick wand.</p></ol>
592
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
535
593
_8c.html" target="source" name="MagickMosaicImages">MagickMosaicImages</a></h2>
536
594
<div class="doc-section">
680
738
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
739
_8c.html" target="source" name="MagickRecolorImage">MagickRecolorImage</a></h2>
740
<div class="doc-section">
742
<p>MagickRecolorImage() apply color transformation to an image. The method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255).</p></ol>
744
<p>The format of the MagickRecolorImage method is:</p>
747
MagickBooleanType MagickRecolorImage(MagickWand *wand,
748
const size_t order,const double *color_matrix)
751
<p>A description of each parameter follows:</p></ol>
754
<ol><p>the magick wand.</p></ol>
757
<ol><p>the number of columns and rows in the color matrix.</p></ol>
759
<h5>color_matrix</h5>
760
<ol><p>An array of doubles representing the color matrix.</p></ol>
763
<h2><a href="http://www.imagemagick.org/api/MagickWand/deprecate
681
764
_8c.html" target="source" name="MagickSetImageAttribute">MagickSetImageAttribute</a></h2>
682
765
<div class="doc-section">
787
870
_8c.html" target="source" name="MagickSetImagePixels">MagickSetImagePixels</a></h2>
788
871
<div class="doc-section">
790
<p>MagickSetImagePixels() accepts pixel datand stores it in the image at the location you specify. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The pixel data can be either char, short int, int, long, float, or double in the order specified by map.</p></ol>
873
<p>MagickSetImagePixels() accepts pixel datand stores it in the image at the location you specify. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The pixel data can be either char, short int, int, ssize_t, float, or double in the order specified by map.</p></ol>
792
875
<p>Suppose your want to upload the first scanline of a 640x480 image from character data in red-green-blue order:</p>
800
883
<pre class="code">
801
884
MagickBooleanType MagickSetImagePixels(MagickWand *wand,
802
const long x,const long y,const unsigned long columns,
803
const unsigned long rows,const char *map,const StorageType storage,
885
const ssize_t x,const ssize_t y,const size_t columns,
886
const size_t rows,const char *map,const StorageType storage,
804
887
const void *pixels)
896
979
<!-- <span id="linkbar-west"> </span> -->
897
980
<span id="linkbar-center">
898
981
<a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
899
<a href="../../www/mailing-list.html">Mailing Lists</a> •
900
982
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
902
984
<span id="linkbar-east"> </span>
904
986
<div class="footer">
905
<span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
987
<span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
906
988
<span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
908
990
<div style="clear: both; margin: 0; width: 100%; "></div>