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
|
\section{Magick::CoderInfo}
\scriptsize{
\begin{verbatim}
The CoderInfo 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 coderInfoList() templated function.
The following code fragment illustrates how CoderInfo may be used.
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;
The methods available in the CoderInfo class are shown in the following
table:
CoderInfo Methods
Method Returns Signature Description
Construct object corresponding to
CoderInfo void named format (e.g. "GIF"). An
exception is thrown if the format is
not supported.
name std::string void Format name (e.g. "GIF").
description std::string void Format description (e.g. "CompuServe
graphics interchange format").
isReadable bool void Format is readable.
isWritable bool void Format is writeable.
isMultiFrame bool void Format supports multiple frames.
\end{verbatim}
}
|