Commit a25d015b authored by cristy's avatar cristy

--no commit message

--no commit message
parent 5f91a321
......@@ -1431,19 +1431,16 @@ http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=21884).
Convolve kernel weights have been separated from alpha blend handling.
Un-normalized kernels applied to images with active alpha will no longer
be auto-normalized due to the effect of alpha blending.
The bug causes images using the default channel setting and having an
alpha channel to automatically 'normalize' the results of a convolve
during the handling of alpha blending. This probably would cause severe
effects when a zero-summing kernel is being used on an image containing
an active (though likely fully-opaque) alpha channel, as division by near
zero weights would cause extreme color values in results.
This bug is not normally seen as convolution, which is normally applied only
to fully-opaque images. And using a zero-summing kernel on an image with
alpha also results in a transparent image! This is why it was not fixed
up until now.
be auto-normalized due to the effect of alpha blending. The bug causes
images using the default channel setting and having an alpha channel to
automatically 'normalize' the results of a convolve during the handling
of alpha blending. This probably would cause severe effects when a
zero-summing kernel is being used on an image containing an active (though
likely fully-opaque) alpha channel, as division by near zero weights
would cause extreme color values in results. This bug is not normally
seen as convolution, which is normally applied only to fully-opaque
images. And using a zero-summing kernel on an image with alpha also
results in a transparent image! This is why it was not fixed up until now.
2012-04-08 6.7.6-6 Cristy <quetzlzacatenango@image...>
* Pixel allocation for Pango is stride*rows not stride*columns.
......
......@@ -183,11 +183,11 @@
<p>The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite language. Choose from these interfaces: <a href="www/api.html#ada">G2F</a> (Ada), <a href="www/api.html#c">MagickCore</a> (C), <a href="www/api.html#c">MagickWand</a> (C), <a href="www/api.html#ch">ChMagick</a> (Ch), <a href="www/api.html#com_">ImageMagickObject</a> (COM+), <a href="www/api.html#c__">Magick++</a> (C++), <a href="www/api.html#java">JMagick</a> (Java), <a href="www/api.html#lisp">L-Magick</a> (Lisp), <a href="www/api.html#lua">Lua</a>, <a href="www/api.html#neko">NMagick</a> (Neko/haXe), <a href="www/api.html#dot-net">Magick.NET</a> (.NET), <a href="www/api.html#pascal">PascalMagick</a> (Pascal), <a href="www/api.html#perl">PerlMagick</a> (Perl), <a href="www/api.html#php">MagickWand for PHP</a> (PHP), <a href="www/api.html#php">IMagick</a> (PHP), <a href="www/api.html#python">PythonMagick</a> (Python), <a href="www/api.html#ruby">RMagick</a> (Ruby), or <a href="www/api.html#tcl">TclMagick</a> (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and <em>automagically</em>.</p>
<p>ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may freely use, copy, modify, and distribute in both open and proprietary applications. It is distributed under the Apache 2.0 <a href="www/license.html" rel="license">license</a>, approved by the <a href="http://www.opensource.org/">OSI</a> and recommended for use by the <a href="http://www.osscc.net/">OSSCC</a>.</p>
<p>ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under the Apache 2.0 <a href="www/license.html" rel="license">license</a>, approved by the <a href="http://www.opensource.org/">OSI</a> and recommended for use by the <a href="http://www.osscc.net/">OSSCC</a>.</p>
<p>The ImageMagick development process ensures a stable API and ABI. Before each ImageMagick release, we perform a comprehensive security assessment that includes <a href="https://code.google.com/p/address-sanitizer/">memory error</a> and <a href="https://code.google.com/p/data-race-test/wiki/ThreadSanitizer">thread data race</a> detection to prevent security vulnerabilities.</p>
<p>The ImageMagick development process ensures a <a href="http://upstream-tracker.org/versions/imagemagick.html">stable API</a> and ABI. Before each ImageMagick release, we perform a comprehensive security assessment that includes <a href="https://code.google.com/p/address-sanitizer/">memory error</a> and <a href="https://code.google.com/p/data-race-test/wiki/ThreadSanitizer">thread data race</a> detection to prevent security vulnerabilities.</p>
<p>The current release is ImageMagick 6.8.6-8 available from <a href="download">http://www.imagemagick.org/download</a>. It runs on <a href="http://www.imagemagick.org/download/linux">Linux</a>, <a href="http://www.imagemagick.org/download/binaries">Windows</a>, <a href="http://www.imagemagick.org/download/binaries">Mac Os X</a>, <a href="http://www.imagemagick.org/download/iOS">iOS</a>, Android OS, and others.</p>
<p>The current release is ImageMagick 6.8.7-0 available from <a href="download">http://www.imagemagick.org/download</a>. It runs on <a href="http://www.imagemagick.org/download/linux">Linux</a>, <a href="http://www.imagemagick.org/download/binaries">Windows</a>, <a href="http://www.imagemagick.org/download/binaries">Mac Os X</a>, <a href="http://www.imagemagick.org/download/iOS">iOS</a>, Android OS, and others.</p>
<p>The official ImageMagick web site is <a href="index.html">http://www.imagemagick.org</a>.</p>
</div>
......@@ -255,8 +255,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -187,7 +187,7 @@
<p>ImageMagick provides a statically-built ImageMagick object as part of its <a href="binary-releases.html#windows">Windows installation package</a>. When this package is installed, ImageMagickObject and its sample programs are installed to this path:</p>
<pre class="text">
c:\Program Files\ImageMagick-6.8.6-Q16\ImageMagickObject
c:\Program Files\ImageMagick-6.8.7-Q16\ImageMagickObject
</pre>
<p>The ImageMagickObject is registered if the checkbox, <code>Register ImageMagickObject</code>, is checked at install time.</p>
......@@ -229,8 +229,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -199,7 +199,7 @@
<p>The configure script looks at your environment and decides what it can cobble together to get ImageMagick compiled and installed on your system. This includes finding a compiler, where your compiler header files are located (e.g. stdlib.h), and if any delegate libraries are available for ImageMagick to use (e.g. JPEG, PNG, TIFF, etc.). If you are willing to accept configure's default options, and build from within the source directory, you can simply type:</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.6-8</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">./configure</span></p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.7-0</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">./configure</span></p>
<p>Watch the configure script output to verify that it finds everything that
you think it should. Pay particular attention to the last lines of the script output. For example, here is a recent report from our system:</p>
......@@ -527,7 +527,7 @@ Options used to compile and link:
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">rpmbuild --rebuild ImageMagick.src.rpm</span></p>
<p>After the build you, locate the RPMS folder and install the ImageMagick binary RPM distribution:</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">rpm -ivh ImageMagick-6.8.6-?.*.rpm</span></p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">rpm -ivh ImageMagick-6.8.7-?.*.rpm</span></p>
</div>
<h2><a id="macosx"></a>Mac OS X-specific Build instructions</h2>
......@@ -551,7 +551,7 @@ Options used to compile and link:
<div class="doc-section">
<p><a href="download.html">Download</a> the ImageMagick source distribution and verify the distribution against its <a href="http://www.imagemagick.org/download/digest.rdf">message digest</a>.</p>
<p>Unpack and change into the top-level ImageMagick directory:</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">tar xvfz ImageMagick-6.8.6-8.tar.gz</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.6-8</span></p> <p>Configure ImageMagick:</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">tar xvfz ImageMagick-6.8.7-0.tar.gz</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.7-0</span></p> <p>Configure ImageMagick:</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">./configure --prefix=/opt --with-quantum-depth=16 \ <br></br>
--disable-dependency-tracking --with-x=yes \ <br></br>
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib/ \ <br></br>
......@@ -571,7 +571,7 @@ Options used to compile and link:
<p>Although you can download and install delegate libraries yourself, many are already available in the <a href="http://gnuwin32.sourceforge.net/">GnuWin32</a> distribution. Download and install whichever delegate libraries you require such as JPEG, PNG, TIFF, etc. Make sure you specify the development headers when you install a package. Next type,</p>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">tar jxvf ImageMagick-6.8.6-?.tar.bz2</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.6-8</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">./configure --without-perl</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">make</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">sudo make install</span></p></div>
<p class="crt"><span class="crtprompt"> $ </span><span class="crtin">tar jxvf ImageMagick-6.8.7-?.tar.bz2</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">cd ImageMagick-6.8.7-0</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">./configure --without-perl</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">make</span><span class="crtout"></span><span class="crtprompt"> $ </span><span class="crtin">sudo make install</span></p></div>
<h2><a id="problems"></a>Dealing with Unexpected Problems</h2>
<div class="doc-section">
......@@ -616,8 +616,8 @@ Options used to compile and link:
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -451,7 +451,7 @@
<ol>
<li>Double-click on
<code>VisualMagick/bin/ImageMagick-6.8.6-8-Q16-windows-dll.exe</code>
<code>VisualMagick/bin/ImageMagick-6.8.7-0-Q16-windows-dll.exe</code>
to launch the ImageMagick binary distribution.</li>
<li>Complete the installer screens to install ImageMagick on your system.</li>
</ol>
......@@ -506,8 +506,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -637,8 +637,8 @@ transparent, extract, background, or shape the alpha channel</td>
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -205,7 +205,7 @@
<dd><a href="../Magick++">Magick++</a> provides an object-oriented C++ interface to ImageMagick. See <a href="http://www.imagemagick.org/Magick++/tutorial/Magick++_tutorial.pdf">A Gentle Introduction to Magick++</a> for an introductory tutorial to Magick++. We include the <a href="http://www.imagemagick.org/Magick++/tutorial/Magick++_tutorial.odt">source</a> if you want to correct, enhance, or expand the tutorial.</dd>
<dt><a id="go"></a>GO</dt>
<dd><a href="https://github.com/gobinds/imagick">GoImagick</a> is a set of Go bindings to ImageMagick's MagickWand and MagickCore C APIs.</dd>
<dd><a href="https://github.com/gographics/imagick">GoImagick</a> is a set of Go bindings to ImageMagick's MagickWand and MagickCore C APIs.</dd>
<dt><a id="java"></a>Java</dt>
......@@ -291,8 +291,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -174,30 +174,9 @@
<div class="main">
<h1>Module animate Methods</h1>
<p class="navigation-index">[<a href="animate.html#AnimateImages">AnimateImages</a>]</p>
<h1>Module Methods</h1>
<p class="navigation-index">[<a href="animate.html#"></a>]</p>
<h2><a href="http://www.imagemagick.org/api/MagickCore/animate_8c.html" id="AnimateImages">AnimateImages</a></h2>
<div class="doc-section">
<p>AnimateImages() repeatedly displays an image sequence to any X window screen. It returns a value other than 0 if successful. Check the exception member of image to determine the reason for any failure.</p>
<p>The format of the AnimateImages method is:</p>
<pre class="code">
MagickBooleanType AnimateImages(const ImageInfo *image_info,
Image *images)
</pre>
<p>A description of each parameter follows:</p>
<h5>image_info</h5>
<p>the image info.</p>
<h5>image</h5>
<p>the image.</p>
</div>
</div>
......@@ -205,8 +184,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -174,169 +174,9 @@
<div class="main">
<h1>Module annotate Methods</h1>
<p class="navigation-index">[<a href="annotate.html#AnnotateImage">AnnotateImage</a><a href="annotate.html#FormatMagickCaption">FormatMagickCaption</a><a href="annotate.html#GetMultilineTypeMetrics">GetMultilineTypeMetrics</a><a href="annotate.html#GetTypeMetrics">GetTypeMetrics</a>]</p>
<h1>Module Methods</h1>
<p class="navigation-index">[<a href="annotate.html#"></a>]</p>
<h2><a href="http://www.imagemagick.org/api/MagickCore/annotate_8c.html" id="AnnotateImage">AnnotateImage</a></h2>
<div class="doc-section">
<p>AnnotateImage() annotates an image with text. Optionally you can include any of the following bits of information about the image by embedding the appropriate special characters:</p>
<pre class="text">
b file size in bytes.
c comment.
d directory in which the image resides.
e extension of the image file.
f original filename of the image.
h height of image.
i filename of the image.
k number of unique colors.
l image label.
m image file format.
n number of images in a image sequence.
o output image filename.
p page number of the image.
q image depth (8 or 16).
q image depth (8 or 16).
s image scene number.
t image filename without any extension.
u a unique temporary filename.
w image width.
x x resolution of the image.
y y resolution of the image.
</pre>
<p>The format of the AnnotateImage method is:</p>
<pre class="code">
MagickBooleanType AnnotateImage(Image *image,DrawInfo *draw_info)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>draw_info</h5>
<p>the draw info.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/annotate_8c.html" id="FormatMagickCaption">FormatMagickCaption</a></h2>
<div class="doc-section">
<p>FormatMagickCaption() formats a caption so that it fits within the image width. It returns the number of lines in the formatted caption.</p>
<p>The format of the FormatMagickCaption method is:</p>
<pre class="code">
ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
const MagickBooleanType split,TypeMetric *metrics,char **caption)
</pre>
<p>A description of each parameter follows.</p>
<h5>image</h5>
<p>The image.</p>
<h5>draw_info</h5>
<p>the draw info.</p>
<h5>split</h5>
<p>when no convenient line breaks-- insert newline.</p>
<h5>metrics</h5>
<p>Return the font metrics in this structure.</p>
<h5>caption</h5>
<p>the caption.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/annotate_8c.html" id="GetMultilineTypeMetrics">GetMultilineTypeMetrics</a></h2>
<div class="doc-section">
<p>GetMultilineTypeMetrics() returns the following information for the specified font and text:</p>
<pre class="text">
character width
character height
ascender
descender
text width
text height
maximum horizontal advance
bounds: x1
bounds: y1
bounds: x2
bounds: y2
origin: x
origin: y
underline position
underline thickness
</pre>
<p>This method is like GetTypeMetrics() but it returns the maximum text width and height for multiple lines of text.</p>
<p>The format of the GetMultilineTypeMetrics method is:</p>
<pre class="code">
MagickBooleanType GetMultilineTypeMetrics(Image *image,
const DrawInfo *draw_info,TypeMetric *metrics)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>draw_info</h5>
<p>the draw info.</p>
<h5>metrics</h5>
<p>Return the font metrics in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/annotate_8c.html" id="GetTypeMetrics">GetTypeMetrics</a></h2>
<div class="doc-section">
<p>GetTypeMetrics() returns the following information for the specified font and text:</p>
<pre class="text">
character width
character height
ascender
descender
text width
text height
maximum horizontal advance
bounds: x1
bounds: y1
bounds: x2
bounds: y2
origin: x
origin: y
underline position
underline thickness
</pre>
<p>The format of the GetTypeMetrics method is:</p>
<pre class="code">
MagickBooleanType GetTypeMetrics(Image *image,const DrawInfo *draw_info,
TypeMetric *metrics)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>draw_info</h5>
<p>the draw info.</p>
<h5>metrics</h5>
<p>Return the font metrics in this structure.</p>
</div>
</div>
......@@ -344,8 +184,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -174,193 +174,9 @@
<div class="main">
<h1>Module attribute Methods</h1>
<p class="navigation-index">[<a href="attribute.html#GetImageChannelDepth">GetImageChannelDepth</a><a href="attribute.html#GetImageQuantumDepth">GetImageQuantumDepth</a><a href="attribute.html#GetImageType">GetImageType</a><a href="attribute.html#IsGrayImage">IsGrayImage</a><a href="attribute.html#IsMonochromeImage">IsMonochromeImage</a><a href="attribute.html#IsOpaqueImage">IsOpaqueImage</a><a href="attribute.html#SetImageChannelDepth">SetImageChannelDepth</a><a href="attribute.html#SetImageType">SetImageType</a>]</p>
<h1>Module Methods</h1>
<p class="navigation-index">[<a href="attribute.html#"></a>]</p>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="GetImageChannelDepth">GetImageChannelDepth</a></h2>
<div class="doc-section">
<p>GetImageChannelDepth() returns the depth of a particular image channel.</p>
<p>The format of the GetImageChannelDepth method is:</p>
<pre class="code">
size_t GetImageDepth(const Image *image,ExceptionInfo *exception)
size_t GetImageChannelDepth(const Image *image,
const ChannelType channel,ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>channel</h5>
<p>the channel.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="GetImageQuantumDepth">GetImageQuantumDepth</a></h2>
<div class="doc-section">
<p>GetImageQuantumDepth() returns the depth of the image rounded to a legal quantum depth: 8, 16, or 32.</p>
<p>The format of the GetImageQuantumDepth method is:</p>
<pre class="code">
size_t GetImageQuantumDepth(const Image *image,
const MagickBooleanType constrain)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>constrain</h5>
<p>A value other than MagickFalse, constrains the depth to a maximum of MAGICKCORE_QUANTUM_DEPTH.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="GetImageType">GetImageType</a></h2>
<div class="doc-section">
<p>GetImageType() returns the potential type of image:</p>
<p>Bilevel Grayscale GrayscaleMatte Palette PaletteMatte TrueColor TrueColorMatte ColorSeparation ColorSeparationMatte</p>
<p>To ensure the image type matches its potential, use SetImageType():</p>
<pre class="text">
(void) SetImageType(image,GetImageType(image));
</pre>
<p>The format of the GetImageType method is:</p>
<pre class="code">
ImageType GetImageType(const Image *image,ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="IsGrayImage">IsGrayImage</a></h2>
<div class="doc-section">
<p>IsGrayImage() returns MagickTrue if all the pixels in the image have the same red, green, and blue intensities.</p>
<p>The format of the IsGrayImage method is:</p>
<pre class="code">
MagickBooleanType IsGrayImage(const Image *image,
ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="IsMonochromeImage">IsMonochromeImage</a></h2>
<div class="doc-section">
<p>IsMonochromeImage() returns MagickTrue if all the pixels in the image have the same red, green, and blue intensities and the intensity is either 0 or QuantumRange.</p>
<p>The format of the IsMonochromeImage method is:</p>
<pre class="code">
MagickBooleanType IsMonochromeImage(const Image *image,
ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="IsOpaqueImage">IsOpaqueImage</a></h2>
<div class="doc-section">
<p>IsOpaqueImage() returns MagickTrue if none of the pixels in the image have an opacity value other than opaque (0).</p>
<p>The format of the IsOpaqueImage method is:</p>
<pre class="code">
MagickBooleanType IsOpaqueImage(const Image *image,
ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="SetImageChannelDepth">SetImageChannelDepth</a></h2>
<div class="doc-section">
<p>SetImageChannelDepth() sets the depth of the image.</p>
<p>The format of the SetImageChannelDepth method is:</p>
<pre class="code">
MagickBooleanType SetImageDepth(Image *image,const size_t depth)
MagickBooleanType SetImageChannelDepth(Image *image,
const ChannelType channel,const size_t depth)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>channel</h5>
<p>the channel.</p>
<h5>depth</h5>
<p>the image depth.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/attribute_8c.html" id="SetImageType">SetImageType</a></h2>
<div class="doc-section">
<p>SetImageType() sets the type of image. Choose from these types:</p>
<p>BilevelType, GrayscaleType, GrayscaleMatteType, PaletteType, PaletteMatteType, TrueColorType, TrueColorMatteType, ColorSeparationType, ColorSeparationMatteType, OptimizeType</p>
<p>The format of the SetImageType method is:</p>
<pre class="code">
MagickBooleanType SetImageType(Image *image,const ImageType type)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>type</h5>
<p>Image type.</p>
</div>
</div>
......@@ -368,8 +184,8 @@
<span id="linkbar-west"> </span>
<span id="linkbar-center">
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="../../discourse-server">Discourse Server</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
<a href="http://jqmagick.imagemagick.org/">JqMagick</a>
</span>
......
......@@ -174,184 +174,9 @@
<div class="main">
<h1>Module blob Methods</h1>
<p class="navigation-index">[<a href="blob.html#BlobToImage">BlobToImage</a><a href="blob.html#FileToImage">FileToImage</a><a href="blob.html#GetBlobProperties">GetBlobProperties</a><a href="blob.html#ImageToBlob">ImageToBlob</a><a href="blob.html#ImageToFile">ImageToFile</a><a href="blob.html#ImagesToBlob">ImagesToBlob</a><a href="blob.html#InjectImageBlob">InjectImageBlob</a>]</p>
<h1>Module Methods</h1>
<p class="navigation-index">[<a href="blob.html#"></a>]</p>
<h2><a href="http://www.imagemagick.org/api/MagickCore/blob_8c.html" id="BlobToImage">BlobToImage</a></h2>
<div class="doc-section">
<p>BlobToImage() implements direct to memory image formats. It returns the blob as an image.</p>
<p>The format of the BlobToImage method is:</p>
<pre class="code">
Image *BlobToImage(const ImageInfo *image_info,const void *blob,
const size_t length,ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image_info</h5>
<p>the image info.</p>
<h5>blob</h5>
<p>the address of a character stream in one of the image formats understood by ImageMagick.</p>
<h5>length</h5>
<p>This size_t integer reflects the length in bytes of the blob.</p>
<h5>exception</h5>
<p>return any errors or warnings in this structure.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/blob_8c.html" id="FileToImage">FileToImage</a></h2>
<div class="doc-section">
<p>FileToImage() write the contents of a file to an image.</p>
<p>The format of the FileToImage method is:</p>
<pre class="code">
MagickBooleanType FileToImage(Image *,const char *filename)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
<h5>filename</h5>
<p>the filename.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/blob_8c.html" id="GetBlobProperties">GetBlobProperties</a></h2>
<div class="doc-section">
<p>GetBlobProperties() returns information about an image blob.</p>
<p>The format of the GetBlobProperties method is:</p>
<pre class="code">
const struct stat *GetBlobProperties(const Image *image)
</pre>
<p>A description of each parameter follows:</p>
<h5>image</h5>
<p>the image.</p>
</div>
<h2><a href="http://www.imagemagick.org/api/MagickCore/blob_8c.html" id="ImageToBlob">ImageToBlob</a></h2>
<div class="doc-section">
<p>ImageToBlob() implements direct to memory image formats. It returns the image as a formatted blob and its length. The magick member of the Image structure determines the format of the returned blob (GIF, JPEG, PNG, etc.). This method is the equivalent of WriteImage(), but writes the formatted "file" to a memory buffer rather than to an actual file.</p>
<p>The format of the ImageToBlob method is:</p>
<pre class="code">
unsigned char *ImageToBlob(const ImageInfo *image_info,Image *image,
size_t *length,ExceptionInfo *exception)
</pre>
<p>A description of each parameter follows:</p>
<h5>image_info</h5></