File: CoderInfo.rst

package info (click to toggle)
graphicsmagick 1.4%2Breally1.3.45%2Bhg17696-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 49,092 kB
  • sloc: ansic: 249,519; cpp: 18,805; sh: 8,000; perl: 3,634; makefile: 2,567; tcl: 2,209; python: 1,250
file content (88 lines) | stat: -rw-r--r-- 2,226 bytes parent folder | download | duplicates (3)
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
.. -*- mode: rst -*-
.. This text is in reStucturedText format, so it may look a bit odd.
.. See http://docutils.sourceforge.net/rst.html for details.

=======================
Magick::CoderInfo Class
=======================

The CoderInfo class supports obtaining information about
GraphicsMagick 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 definition of class 'Magick::CoderInfo' is::

  namespace Magick
  {
    class MagickDLLDecl CoderInfo
    {
    public:

      enum MatchType {
        AnyMatch,       // match any coder
        TrueMatch,      // match coder if true
        FalseMatch      // match coder if false
      };

      // Default constructor
      CoderInfo ( void );

      // Copy constructor
      CoderInfo ( const CoderInfo &coder_ );

      // Construct with coder name
      CoderInfo ( const std::string &name_ );

      // Destructor
      ~CoderInfo ( void );

      // Format name
      std::string name( void ) const;

      // Format description
      std::string description( void ) const;

      // Format is readable
      bool isReadable( void ) const;

      // Format is writeable
      bool isWritable( void ) const;

      // Format supports multiple frames
      bool isMultiFrame( void ) const;

      // Assignment operator
      CoderInfo& operator= (const CoderInfo &coder_ );

    };
  }

.. |copy|   unicode:: U+000A9 .. COPYRIGHT SIGN

Copyright |copy| Bob Friesenhahn 1999 - 2022