1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
4
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=ibm437">
5
<TITLE>Magick::CoderInfo Class</TITLE>
6
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.0 (Win32)">
7
<META NAME="AUTHOR" CONTENT="Bob Friesenhahn">
8
<META NAME="CREATED" CONTENT="20020805;13531808">
9
<META NAME="CHANGEDBY" CONTENT="Bob Friesenhahn">
10
<META NAME="CHANGED" CONTENT="20020805;13535284">
11
<META NAME="DESCRIPTION" CONTENT="Class to access raw image pixels.">
12
<META NAME="KEYWORDS" CONTENT="GraphicsMagick,Pixel,Magick++">
15
TD P { color: #000000 }
18
A:link { color: #0000ff }
19
A:visited { color: #ff0000 }
23
<BODY LANG="en-US" TEXT="#000000" LINK="#0000ff" VLINK="#ff0000" BGCOLOR="#ffffff">
24
<H3 ALIGN=CENTER>Magick::CoderInfo</H3>
25
<P>The <I>CoderInfo</I> class provides the means to provide
26
information regarding GraphicsMagick support for an image format
27
(designated by a magick string). It may be used to provide support
28
for a specific named format (provided as an argument to the
29
constructor), or as an element of a container when format support is
30
queried using the <A HREF="STL.html#coderInfoList">coderInfoList()</A>
33
<P>The following code fragment illustrates how CoderInfo may be used.
35
<P><TT><FONT COLOR="#000066"> CoderInfo
36
info("GIF");</FONT></TT> <BR><TT><FONT COLOR="#000066">
37
cout << info->name() << ": (" <<
38
info->description() << ") : ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
39
cout << "Readable = ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
40
if ( info->isReadable() )</FONT></TT> <BR><TT><FONT COLOR="#000066">
41
cout << "true";</FONT></TT> <BR><TT><FONT COLOR="#000066">
42
else</FONT></TT> <BR><TT><FONT COLOR="#000066">
43
cout << "false";</FONT></TT> <BR><TT><FONT COLOR="#000066">
44
cout << ", ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
45
cout << "Writable = ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
46
if ( info->isWritable() )</FONT></TT> <BR><TT><FONT COLOR="#000066">
47
cout << "true";</FONT></TT> <BR><TT><FONT COLOR="#000066">
48
else</FONT></TT> <BR><TT><FONT COLOR="#000066">
49
cout << "false";</FONT></TT> <BR><TT><FONT COLOR="#000066">
50
cout << ", ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
51
cout << "Multiframe = ";</FONT></TT> <BR><TT><FONT COLOR="#000066">
52
if ( info->isMultiframe() )</FONT></TT> <BR><TT><FONT COLOR="#000066">
53
cout << "true";</FONT></TT> <BR><TT><FONT COLOR="#000066">
54
else</FONT></TT> <BR><TT><FONT COLOR="#000066">
55
cout << "false";</FONT></TT> <BR><TT><FONT COLOR="#000066">
56
cout << endl;</FONT></TT>
58
<P STYLE="margin-bottom: 0cm">The methods available in the <I>CoderInfo</I>
59
class are shown in the following table: <BR><BR>
61
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><B>CoderInfo Methods</B></P>
62
<TABLE WIDTH=100% BORDER=1 CELLPADDING=2 CELLSPACING=2>
65
<P ALIGN=CENTER><B>Method</B></P>
68
<P ALIGN=CENTER><B>Returns</B></P>
71
<P ALIGN=CENTER><B>Signature</B></P>
74
<P ALIGN=CENTER><B>Description</B></P>
79
<P ALIGN=CENTER><A NAME="CoderInfo"></A><FONT SIZE=2>CoderInfo</FONT></P>
81
<TD BGCOLOR="#999999">
82
<P><FONT SIZE=2> </FONT></P>
85
<P><FONT SIZE=2>void</FONT></P>
88
<P><FONT SIZE=2>Construct object corresponding to named format
89
(e.g. "GIF"). An exception is thrown if the format is
90
not supported.</FONT></P>
95
<P ALIGN=CENTER><A NAME="name"></A><FONT SIZE=2>name</FONT></P>
98
<P><FONT SIZE=2>std::string</FONT></P>
101
<P><FONT SIZE=2>void</FONT></P>
104
<P><FONT SIZE=2>Format name (e.g. "GIF").</FONT></P>
109
<P ALIGN=CENTER><A NAME="description"></A><FONT SIZE=2>description</FONT></P>
112
<P><FONT SIZE=2>std::string</FONT></P>
115
<P><FONT SIZE=2>void</FONT></P>
118
<P><FONT SIZE=2>Format description (e.g. "CompuServe graphics
119
interchange format").</FONT></P>
124
<P ALIGN=CENTER><A NAME="isReadable"></A><FONT SIZE=2>isReadable</FONT></P>
127
<P><FONT SIZE=2>bool</FONT></P>
130
<P><FONT SIZE=2>void</FONT></P>
133
<P><FONT SIZE=2>Format is readable.</FONT></P>
138
<P ALIGN=CENTER><A NAME="isWritable"></A><FONT SIZE=2>isWritable</FONT></P>
141
<P><FONT SIZE=2>bool</FONT></P>
144
<P><FONT SIZE=2>void</FONT></P>
147
<P><FONT SIZE=2>Format is writeable.</FONT></P>
152
<P ALIGN=CENTER><A NAME="isMultiFrame"></A><FONT SIZE=2>isMultiFrame</FONT></P>
155
<P><FONT SIZE=2>bool</FONT></P>
158
<P><FONT SIZE=2>void</FONT></P>
161
<P><FONT SIZE=2>Format supports multiple frames.</FONT></P>
b'\\ No newline at end of file'