Project

General

Profile

Have a list of supported pix formats » History » Version 1

iri, 03/27/2011 11:02 PM

1 1 iri
h1. Have a list of supported pix formats
2
3
<pre><code class="c">
4
fun displayList2 (list, prefixe)=
5
    if list == nil then
6
        0
7
    else
8
        (
9
        _fooS strcat a hd list;
10
        displayList2 tl list prefixe
11
        );;
12
13
fun displayList (list)=
14
    if list == nil then
15
        0
16
    else
17
        let hd list -> [name mimes ext desc lic disabled] in
18
        (
19
        _fooS strcat "name = " name;
20
        displayList2 mimes "mimes = ";
21
        displayList2 ext "extensions = ";
22
        _fooS strcat "description = " desc;
23
        _fooS strcat "license = " lic;
24
        _fooS strcat "disabled = " itoa disabled;
25
        _fooS "****";
26
        displayList tl list;
27
	);;
28
29
fun main ()=
30
    _showconsole;
31
    
32
    displayList _gtkPixFormatsFull;
33
    0;;
34
</code></pre>
35
36
The console will display ... :
37
38
<pre>name = tiff
39
mimes = image/tiff
40
extensions = tiff
41
extensions = tif
42
description = The TIFF image format
43
license = LGPL
44
disabled = 0
45
****
46
name = jpeg
47
mimes = image/jpeg
48
extensions = jpeg
49
extensions = jpe
50
extensions = jpg
51
description = The JPEG image format
52
license = LGPL
53
disabled = 0
54
****
55
name = gif
56
mimes = image/gif
57
extensions = gif
58
description = The GIF image format
59
license = LGPL
60
disabled = 0
61
****
62
name = bmp
63
mimes = image/bmp
64
mimes = image/x-bmp
65
mimes = image/x-MS-bmp
66
extensions = bmp
67
description = The BMP image format
68
license = LGPL
69
disabled = 0
70
****
71
name = emf
72
mimes = application/emf
73
mimes = application/x-emf
74
mimes = image/x-emf
75
mimes = image/x-mgx-emf
76
extensions = emf
77
description = The EMF image format
78
license = LGPL
79
disabled = 0
80
****
81
name = wmf
82
mimes = image/x-wmf
83
extensions = wmf
84
extensions = apm
85
description = The WMF image format
86
license = LGPL
87
disabled = 0
88
****
89
name = ico
90
mimes = image/x-icon
91
mimes = image/x-ico
92
extensions = ico
93
extensions = cur
94
description = The ICO image format
95
license = LGPL
96
disabled = 0
97
****
98
name = qtif
99
mimes = image/x-quicktime
100
mimes = image/qtif
101
extensions = qtif
102
extensions = qif
103
description = The QTIF image format
104
license = LGPL
105
disabled = 0
106
****
107
name = icns
108
mimes = image/x-icns
109
extensions = icns
110
description = The ICNS image format
111
license = GPL
112
disabled = 0
113
****
114
name = pcx
115
mimes = image/x-pcx
116
extensions = pcx
117
description = The PCX image format
118
license = LGPL
119
disabled = 0
120
****
121
name = tga
122
mimes = image/x-tga
123
extensions = tga
124
extensions = targa
125
description = The Targa image format
126
license = LGPL
127
disabled = 0
128
****
129
name = xbm
130
mimes = image/x-xbitmap
131
extensions = xbm
132
description = The XBM image format
133
license = LGPL
134
disabled = 0
135
****
136
name = xpm
137
mimes = image/x-xpixmap
138
extensions = xpm
139
description = The XPM image format
140
license = LGPL
141
disabled = 0
142
****
143
name = ras
144
mimes = image/x-cmu-raster
145
mimes = image/x-sun-raster
146
extensions = ras
147
description = The Sun raster image format
148
license = LGPL
149
disabled = 0
150
****
151
name = pnm
152
mimes = image/x-portable-anymap
153
mimes = image/x-portable-bitmap
154
mimes = image/x-portable-graymap
155
mimes = image/x-portable-pixmap
156
extensions = pnm
157
extensions = pbm
158
extensions = pgm
159
extensions = ppm
160
description = The PNM/PBM/PGM/PPM image format family
161
license = LGPL
162
disabled = 0
163
****
164
name = wbmp
165
mimes = image/vnd.wap.wbmp
166
extensions = wbmp
167
description = The WBMP image format
168
license = LGPL
169
disabled = 0
170
****
171
name = png
172
mimes = image/png
173
extensions = png
174
description = The PNG image format
175
license = LGPL
176
disabled = 0
177
****
178
name = ani
179
mimes = application/x-navi-animation
180
extensions = ani
181
description = The ANI image format
182
license = LGPL
183
disabled = 0
184
****
185
</pre>
186
187
Return [[Examples]]