Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 30cfb9c460c63391a64d7f1d01e1bf02 > files > 191

libMagick5-devel-5.4.8.3-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]">
   <meta name="Author" content="Bob Friesenhahn">
   <meta name="Description" content="Description of QuantizeInfo structure members.">
   <title>ImageMagick QuantizeInfo Structure</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#1F00FF" vlink="#9900DD" alink="#FF0000">

<center>
<h1>
ImageMagick QuantizeInfo Structure</h1></center>
The QuantizeInfo structure is used to support passing parameters to ImageMagick's
color quantization (reduction) functions. Color quantization is the process
of analyzing one or more images, and calculating a color palette which
best approximates the image within a specified colorspace, and then adjusting
the image pixels to use the calculated color palette. The maximum number
of colors allowed in the color palette may be specified.
<br>&nbsp;
<table BORDER WIDTH="100%" BGCOLOR="#CCCCCC" >
<caption><b>Methods Supporting QuantizeInfo</b></caption>

<tr>
<td>
<center><b>Method</b></center>
</td>

<td>
<center><b>Description</b></center>
</td>
</tr>

<tr>
<td><a href="../quantize.html#getquantizeinfo">GetQuantizeInfo()</a></td>

<td>Allocate new structure with defaults set.</td>
</tr>

<tr>
<td><a href="../quantize.html#clonequantizeinfo">CloneQuantizeInfo()</a></td>

<td>Copy existing structure, allocating new structure in the process.</td>
</tr>

<tr>
<td><a href="../quantize.html#destroyquantizeinfo">DestroyQuantizeInfo()</a></td>

<td>Deallocate structure, including any members.</td>
</tr>

<tr>
<td><a href="../quantize.html#quantizeimage">QuantizeImage</a></td>

<td>Analyzes the colors within a reference image and chooses a fixed number
of colors to represent the image.</td>
</tr>

<tr>
<td><a href="../quantize.html#quantizeimages">QuantizeImages</a></td>

<td>Analyzes the colors within a set of reference images and chooses a
fixed number of colors to represent the set.</td>
</tr>
</table>

<br><a href="../draw.html#GetQuantizeInfo"></a>&nbsp;
<br>&nbsp;
<table BORDER WIDTH="100%" BGCOLOR="#CCCCCC" >
<caption><b>QuantizeInfo Structure Members</b></caption>

<tr>
<td>
<center><b>Member</b></center>
</td>

<td>
<center><b>Type</b></center>
</td>

<td>
<center><b>Description</b></center>
</td>
</tr>

<tr>
<td>colorspace</td>

<td><a href="Enumerations.html#ColorspaceType">ColorspaceType</a></td>

<td>The colorspace to quantize in. Color reduction, by default, takes place
in the RGB color space.&nbsp; Empirical&nbsp; evidence&nbsp; suggests that
distances in color spaces such as YUV or YIQ&nbsp; correspond&nbsp; to&nbsp;
perceptual&nbsp; color differences more closely&nbsp; than&nbsp; do distances
in RGB space. The Transparent color space behaves uniquely in that it preserves
the matte channel of the image if it exists.</td>
</tr>

<tr>
<td>dither</td>

<td>unsigned int</td>

<td>Set to True (non-zero) to apply Floyd/Steinberg error diffusion to
the image. When the size of the color palette is less than the image colors,
this trades off spacial resolution for color resolution by dithering to
achieve a similar looking image.</td>
</tr>

<tr>
<td>measure_error</td>

<td>unsigned int</td>

<td>Set to True (non-zero) to calculate quantization errors when quantizing
the image.</td>
</tr>

<tr>
<td>number_colors</td>

<td>unsigned int</td>

<td>Specify the maximum number of colors in the output image. Must be equal
to, or less than MaxRGB, which is determined by the value of QuantumLeap
when ImageMagick was compiled.</td>
</tr>

<tr>
<td>signature</td>

<td>unsigned long</td>

<td>???</td>
</tr>

<tr>
<td>tree_depth</td>

<td>unsigned int</td>

<td>Specify the tree depth to use while quantizing. The values zero and
one support automatic tree depth determination. The tree depth may be forced
via values ranging from two to eight. The ideal tree depth depends on the
characteristics of the input image, and may be determined through experimentation.</td>
</tr>
</table>

<hr>
<p><a href="../../../ImageMagick.html"><img SRC="../../../images/home.png" ALT="Home Page" BORDER=0 height=40 width=40 align=MIDDLE></a><font size="-2">
Image manipulation software that works like magic.</font>
</body>
</html>