Home | History | Annotate | Download | only in Magick++
      1 <?xml version="1.0" encoding="utf-8" ?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      4 <head>
      5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      6 <title>Magick++ API: PixelPacket</title>
      7 <link rel="stylesheet" href="magick.css" type="text/css" />
      8 </head>
      9 <body>
     10 <div class="doc-section">
     11 <h1 align="center">PixelPacket Structure</h1>
     12 <p style="margin-bottom: 0cm">The <i>PixelPacket</i> structure is used to represent pixels in ImageMagick. ImageMagick may be compiled to support 32 or 64 bit pixels. The size of PixelPacket is controlled by the value of the <i>QuantumDepth</i> define. The default is 64 bit pixels, which provide the best accuracy. If memory consumption must be minimized, or processing time must be minimized, then ImageMagick may be compiled with QuantumDepth=8. The following table shows the relationship between <i>QuantumDepth</i>, the type of <i>Quantum</i>, and the overall <i>PixelPacket</i> size.</p>
     13 <br />
     14 <p align="center" style="margin-bottom: 0cm"><b>Effect Of QuantumDepth Values</b></p>
     15 <center>
     16 <table width="336" border="1" cellpadding="2" cellspacing="3" bgcolor="#CCCCCC">
     17 <col width="101" />
     18 <col width="99" />
     19 <col width="110" />
     20 <tr>
     21 <td width="101">
     22 <p align="center"><b>QuantumDepth</b></p></td>
     23 <td width="99">
     24 <p align="center"><b>Quantum Type</b></p></td>
     25 <td width="110">
     26 <p align="center"><b>PixelPacket Size</b></p></td></tr>
     27 <tr>
     28 <td width="101">
     29 <p align="center">8</p></td>
     30 <td width="99">
     31 <p align="center">unsigned char</p></td>
     32 <td width="110">
     33 <p align="center">32 bits</p></td></tr>
     34 <tr>
     35 <td width="101">
     36 <p align="center">16</p></td>
     37 <td width="99">
     38 <p align="center">unsigned short</p></td>
     39 <td width="110">
     40 <p align="center">64 bits</p></td></tr></table></center>
     41 <p style="margin-bottom: 0cm">The members of the <i>PixelPacket</i> structure, and their interpretation, are shown in the following table:</p>
     42 <br />
     43 <p align="center" style="margin-bottom: 0cm"><b>PixelPacket Structure Members</b></p>
     44 <center>
     45 <table width="523" border="1" cellpadding="2" cellspacing="3" bgcolor="#CCCCCC">
     46 <col width="58" />
     47 <col width="50" />
     48 <col width="102" />
     49 <col width="152" />
     50 <col width="119" />
     51 <tr>
     52 <td rowspan="2" width="58">
     53 <p align="center"><b>Member</b></p></td>
     54 <td rowspan="2" width="50">
     55 <p align="center"><b>Type</b></p></td>
     56 <td colspan="3" width="388">
     57 <p align="center"><b>Interpretation</b></p></td></tr>
     58 <tr>
     59 <td width="102">
     60 <p align="center"><a href="Enumerations.html#ColorspaceType">RGBColorspace</a></p></td>
     61 <td width="152">
     62 <p align="center"><a href="Enumerations.html#ColorspaceType">RGBColorspace</a> + <a href="Image++.html#matte">matte</a></p></td>
     63 <td width="119">
     64 <p align="center"><a href="Enumerations.html#ColorspaceType">CMYKColorspace</a></p></td></tr>
     65 <tr>
     66 <td width="58">
     67 <p><font size="2">red</font></p></td>
     68 <td width="50">
     69 <p><font size="2">Quantum</font></p></td>
     70 <td width="102">
     71 <p><font size="2">Red</font></p></td>
     72 <td width="152">
     73 <p><font size="2">Red</font></p></td>
     74 <td width="119">
     75 <p><font size="2">Cyan</font></p></td></tr>
     76 <tr>
     77 <td width="58">
     78 <p><font size="2">green</font></p></td>
     79 <td width="50">
     80 <p><font size="2">Quantum</font></p></td>
     81 <td width="102">
     82 <p><font size="2">Green</font></p></td>
     83 <td width="152">
     84 <p><font size="2">Green</font></p></td>
     85 <td width="119">
     86 <p><font size="2">Magenta</font></p></td></tr>
     87 <tr>
     88 <td width="58">
     89 <p><font size="2">blue</font></p></td>
     90 <td width="50">
     91 <p><font size="2">Quantum</font></p></td>
     92 <td width="102">
     93 <p><font size="2">Blue</font></p></td>
     94 <td width="152">
     95 <p><font size="2">Blue</font></p></td>
     96 <td width="119">
     97 <p><font size="2">Yellow</font></p></td></tr>
     98 <tr>
     99 <td width="58">
    100 <p><font size="2">opacity</font></p></td>
    101 <td width="50">
    102 <p><font size="2">Quantum</font></p></td>
    103 <td width="102">
    104 <p><font size="2">Ignored</font></p></td>
    105 <td width="152">
    106 <p><font size="2">Opacity</font></p></td>
    107 <td width="119">
    108 <p><font size="2">Ignored</font></p></td></tr></table></center>
    109 </div>
    110 </body>
    111 </html>
    112