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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Magick++ API: Access Raw Image Pixels</title>
<link rel="stylesheet" href="magick.css" type="text/css" />
</head>
<body>
<div class="doc-section">
<h3 align="center">Magick::CoderInfo</h3>
<p>The <i>CoderInfo</i> class provides the means to provide information regarding ImageMagick support for an image format (designated by a magick string). It may be used to provide support for a specific named format (provided as an argument to the constructor), or as an element of a container when format support is queried using the <a href="STL.html#coderInfoList">coderInfoList()</a> templated function.</p>
<p>The following code fragment illustrates how CoderInfo may be used.</p>
<pre class="code">
CoderInfo info("GIF");
cout < info->name() << ": (" << info->description() << ") : ";
cout << "Readable = ";
if ( info->isReadable() )
cout << "true";
else
cout << "false";
cout << ", ";
cout << "Writable = ";
if ( info->isWritable() )
cout << "true";
else
cout << "false";
cout << ", ";
cout << "Multiframe = ";
if ( info->isMultiframe() )
cout << "true";
else
cout << "false";
cout << endl;
</pre>
<p style="margin-bottom: 0cm">The methods available in the <i>CoderInfo</i> class are shown in the following table:</p>
<br />
<ul>
<p align="center" style="margin-bottom: 0cm"><b>CoderInfo Methods</b></p>
<table width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<td>
<p align="center"><b>Method</b></p>
</td>
<td>
<p align="center"><b>Returns</b></p>
</td>
<td>
<p align="center"><b>Signature</b></p>
</td>
<td>
<p align="center"><b>Description</b></p>
</td>
</tr>
<tr>
<td rowspan="3">
<p align="center"><a name="CoderInfo"></a>
<font size="2">CoderInfo</font>
</p>
</td>
<td rowspan="3" bgcolor="#999999"></td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Default constructor</font>
</p>
</td>
</tr>
<tr>
<td>
<p>
<font size="2">const CoderInfo &coder_</font>
</p>
</td>
<td>
<p>
<font size="2">Copy constructor</font>
</p>
</td>
</tr>
<tr>
<td>
<p>
<font size="2">const std::string &name_</font>
</p>
</td>
<td>
<p>
<font size="2">Construct with coder name</font>
</p>
</td>
</tr>
<tr>
<td>
<p align="center"><a name="name"></a>
<font size="2">name</font>
</p>
</td>
<td>
<p>
<font size="2">std::string</font>
</p>
</td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Format name (e.g. "GIF").</font>
</p>
</td>
</tr>
<tr>
<td>
<p align="center"><a name="description"></a>
<font size="2">description</font>
</p>
</td>
<td>
<p>
<font size="2">std::string</font>
</p>
</td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Format description (e.g. "CompuServe graphics interchange format").</font>
</p>
</td>
</tr>
<tr>
<td>
<p align="center"><a name="isReadable"></a>
<font size="2">isReadable</font>
</p>
</td>
<td>
<p>
<font size="2">bool</font>
</p>
</td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Format is readable.</font>
</p>
</td>
</tr>
<tr>
<td>
<p align="center"><a name="isWritable"></a>
<font size="2">isWritable</font>
</p>
</td>
<td>
<p>
<font size="2">bool</font>
</p>
</td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Format is writeable.</font>
</p>
</td>
</tr>
<tr>
<td>
<p align="center"><a name="isMultiFrame"></a>
<font size="2">isMultiFrame</font>
</p>
</td>
<td>
<p>
<font size="2">bool</font>
</p>
</td>
<td>
<p>
<font size="2">void</font>
</p>
</td>
<td>
<p>
<font size="2">Format supports multiple frames.</font>
</p>
</td>
</tr>
</table>
</ul>
</div>
</body>
</html>
|