File: PixelPacket.html

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