File: magick.html

package info (click to toggle)
imagemagick 4.2.8-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 11,116 kB
  • ctags: 5,107
  • sloc: ansic: 98,927; sh: 11,151; cpp: 8,810; perl: 1,922; tcl: 458; makefile: 347
file content (151 lines) | stat: -rw-r--r-- 3,807 bytes parent folder | download | duplicates (2)
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
<HTML>
<HEAD>
<TITLE>magick - Methods to Read or List ImageMagick Image formats</TITLE>
<LINK REV="made" HREF="mailto:magick@wizards.dupont.com">
</HEAD>

<body background="../../images/background.gif">

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
	<LI><A HREF="#FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A>
	<UL>

		<LI><A HREF="#GetMagickInfo">GetMagickInfo</A>
		<LI><A HREF="#ListMagickInfo">ListMagickInfo</A>
	</UL>

</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="NAME">NAME</A></H1>
<P>
magick - Methods to Read or List ImageMagick Image formats

<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<P>
MagickInfo* <STRONG>GetMagickInfo</STRONG>(constchar*tag)

<P>
void <STRONG>ListMagickInfo</STRONG>(FILE*file)

<P>
<HR>
<H1><A NAME="FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></H1>
<P>
<HR>
<H2><A NAME="GetMagickInfo">GetMagickInfo</A></H2>
<P>
Method GetMagickInfo returns a pointer MagickInfo structure that matches the specified tag. If tag is 
<FONT SIZE=-1>NULL,</FONT> the head of the image format list is returned.


<P>
The format of the GetMagickInfo method is:

<blockquote>MagickInfo *GetMagickInfo (const char *tag) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG><A NAME="item_o">magick_info:</A></STRONG><DD>
<P>
Method GetMagickInfo returns a pointer MagickInfo structure that matches
the specified tag.

<DT><STRONG>tag:</STRONG><DD>
<P>
a character string that represents the image format we are looking for.

</DL></DL>
<P>
<HR>
<H2><A NAME="ListMagickInfo">ListMagickInfo</A></H2>
<P>
Method ListMagickInfo lists the image formats to a.

<P>
The format of the ListMagickInfo method is:

<blockquote>void ListMagickInfo (FILE *file) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows.

<P>
<PRE>  o:  An pointer to a FILE.
=head2 RegisterMagickInfo
</PRE>
<P>
Method RegisterMagickInfo adds attributes for a particular image format to the list of supported formats. The attributes include the image format tag, a method to read and/or write the format, whether the format supports the saving of more than one frame to the same file or blob, whether the format supports native in-memory 
<FONT SIZE=-1>I/O,</FONT> and a brief description of the format.


<P>
The format of the RegisterMagickInfo method is:

<P>
<PRE>    MagickInfo *RegisterMagickInfo(const char *tag,
      Image *(*decoder)(const ImageInfo *),
      unsigned int (*encoder)(const ImageInfo *,Image *),
      unsigned int (*magick)(const unsigned char *,const unsigned int),
      const unsigned int adjoin,const unsigned int blob_support,
      const char *description)
      blob_support,description))
</PRE>
<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>magick_info:</STRONG><DD>
<P>
Method RegisterMagickInfo returns a pointer MagickInfo structure that
contains the specified tag info.

<DT><STRONG>tag:</STRONG><DD>
<P>
a character string that represents the image format we are looking for.

<DT><STRONG>decoder:</STRONG><DD>
<P>
a method that is used to read the image format.

<DT><STRONG>encoder:</STRONG><DD>
<P>
a method that is used to write the image format.

<DT><STRONG>magick:</STRONG><DD>
<P>
this method returns True if the image format signature matches a subset of
the first few bytes of the file or blob.

<DT><STRONG>adjoin:</STRONG><DD>
<P>
a value greater than 0 means the image format can save more than one frame
to the file or blob.

<DT><STRONG>blob_support:</STRONG><DD>
<P>
a value greater than 0 means the format supports native in-memory 
<FONT SIZE=-1>I/O.</FONT>

<DT><STRONG>description:</STRONG><DD>
<P>
a character string that describes the image format.

</DL></DL>
</BODY>

</HTML>