blob: 88f28cf0ac5b29a3bcf5e1413a699d1d1d9f0723 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3<html>
4<head>
5<meta name="GENERATOR" content="OpenOffice.org 1.0 (Win32)">
6<meta name="AUTHOR" content="Bob Friesenhahn">
7<meta name="CREATED" content="20020805;18015392">
8<meta name="CHANGEDBY" content="Bob Friesenhahn">
9<meta name="CHANGED" content="20020805;18024233">
10<meta name="DESCRIPTION" content="Description of PixelPacket structure members.">
11<link rel=stylesheet type=text/css href=../../www/magick.css>
12</head>
13<body lang="en-US" text="#ffffff" link="#1F00FF" vlink="#9900DD" bgcolor="#fbc713">
14<h1 align="center">PixelPacket Structure</h1>
15<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>
16<br>
17<p align="center" style="margin-bottom: 0cm"><b>Effect Of QuantumDepth Values</b></p>
18<center>
19<table width="336" border="1" cellpadding="2" cellspacing="3" bgcolor="#CCCCCC">
20<col width="101">
21<col width="99">
22<col width="110">
23<tr>
24<td width="101">
25<p align="center"><b>QuantumDepth</b></p></td>
26<td width="99">
27<p align="center"><b>Quantum Type</b></p></td>
28<td width="110">
29<p align="center"><b>PixelPacket Size</b></p></td></tr>
30<tr>
31<td width="101">
32<p align="center">8</p></td>
33<td width="99">
34<p align="center">unsigned char</p></td>
35<td width="110">
36<p align="center">32 bits</p></td></tr>
37<tr>
38<td width="101">
39<p align="center">16</p></td>
40<td width="99">
41<p align="center">unsigned short</p></td>
42<td width="110">
43<p align="center">64 bits</p></td></tr></table></center>
44<p style="margin-bottom: 0cm">The members of the <i>PixelPacket</i> structure, and their interpretation, are shown in the following table:</p>
45<br>
46<p align="center" style="margin-bottom: 0cm"><b>PixelPacket Structure Members</b></p>
47<center>
48<table width="523" border="1" cellpadding="2" cellspacing="3" bgcolor="#CCCCCC">
49<col width="58">
50<col width="50">
51<col width="102">
52<col width="152">
53<col width="119">
54<tr>
55<td rowspan="2" width="58">
56<p align="center"><b>Member</b></p></td>
57<td rowspan="2" width="50">
58<p align="center"><b>Type</b></p></td>
59<td colspan="3" width="388">
60<p align="center"><b>Interpretation</b></p></td></tr>
61<tr>
62<td width="102">
63<p align="center"><a href="Enumerations.html#ColorspaceType">RGBColorspace</a></p></td>
64<td width="152">
65<p align="center"><a href="Enumerations.html#ColorspaceType">RGBColorspace</a> + <a href="Image.html#matte">matte</a></p></td>
66<td width="119">
67<p align="center"><a href="Enumerations.html#ColorspaceType">CMYKColorspace</a></p></td></tr>
68<tr>
69<td width="58">
70<p><font size="2">red</font></p></td>
71<td width="50">
72<p><font size="2">Quantum</font></p></td>
73<td width="102">
74<p><font size="2">Red</font></p></td>
75<td width="152">
76<p><font size="2">Red</font></p></td>
77<td width="119">
78<p><font size="2">Cyan</font></p></td></tr>
79<tr>
80<td width="58">
81<p><font size="2">green</font></p></td>
82<td width="50">
83<p><font size="2">Quantum</font></p></td>
84<td width="102">
85<p><font size="2">Green</font></p></td>
86<td width="152">
87<p><font size="2">Green</font></p></td>
88<td width="119">
89<p><font size="2">Magenta</font></p></td></tr>
90<tr>
91<td width="58">
92<p><font size="2">blue</font></p></td>
93<td width="50">
94<p><font size="2">Quantum</font></p></td>
95<td width="102">
96<p><font size="2">Blue</font></p></td>
97<td width="152">
98<p><font size="2">Blue</font></p></td>
99<td width="119">
100<p><font size="2">Yellow</font></p></td></tr>
101<tr>
102<td width="58">
103<p><font size="2">opacity</font></p></td>
104<td width="50">
105<p><font size="2">Quantum</font></p></td>
106<td width="102">
107<p><font size="2">Ignored</font></p></td>
108<td width="152">
109<p><font size="2">Opacity</font></p></td>
110<td width="119">
111<p><font size="2">Black</font></p></td></tr></table></center>
112<br>
113<br>
114</body>
115</html>