author | Claus Gittinger <cg@exept.de> |
Sat, 14 Sep 1996 10:45:11 +0200 | |
changeset 332 | 86b45e0f9ec0 |
parent 331 | 304f9c439efa |
child 334 | 1da7672635be |
permissions | -rw-r--r-- |
0 | 1 |
" |
6 | 2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
26 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
ImageReader subclass:#GIFReader |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
14 |
instanceVariableNames:'redMap greenMap blueMap maskPixelValue' |
154 | 15 |
classVariableNames:'' |
16 |
poolDictionaries:'' |
|
259 | 17 |
category:'Graphics-Images-Support' |
0 | 18 |
! |
19 |
||
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
20 |
!GIFReader class methodsFor:'documentation'! |
0 | 21 |
|
21 | 22 |
copyright |
23 |
" |
|
24 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
26 | 25 |
All Rights Reserved |
21 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
0 | 36 |
documentation |
37 |
" |
|
38 |
this class provides methods for loading and saving GIF pictures. |
|
21 | 39 |
It has been tested with some different GIF87a pictures, I dont |
0 | 40 |
know, if it works with other GIF versions. |
41 |
GIF extension blocks are not handled. |
|
42 |
||
43 |
GIF file writing is not implemented (use TIFF). |
|
44 |
||
21 | 45 |
legal stuff extracted from GIF87a documentation: |
0 | 46 |
|
47 |
CompuServe Incorporated hereby grants a limited, non-exclusive, royalty-free |
|
48 |
license for the use of the Graphics Interchange Format(sm) in computer |
|
49 |
software; computer software utilizing GIF(sm) must acknowledge ownership of the |
|
50 |
Graphics Interchange Format and its Service Mark by CompuServe Incorporated, in |
|
51 |
User and Technical Documentation. |
|
52 |
||
53 |
The Graphics Interchange Format(c) is the Copyright property of |
|
54 |
CompuServe Incorporated. GIF(sm) is a Service Mark property of |
|
55 |
CompuServe Incorporated. |
|
194 | 56 |
|
57 |
[See also:] |
|
234 | 58 |
Image Form Icon |
194 | 59 |
BlitImageReader FaceReader JPEGReader PBMReader PCXReader |
210 | 60 |
ST80FormReader SunRasterReader TargaReader TIFFReader WindowsIconReader |
209 | 61 |
XBMReader XPMReader XWDReader |
220 | 62 |
|
63 |
[author:] |
|
64 |
Claus Gittinger |
|
0 | 65 |
" |
66 |
! ! |
|
67 |
||
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
68 |
!GIFReader class methodsFor:'initialization'! |
26 | 69 |
|
70 |
initialize |
|
198 | 71 |
"install myself in the Image classes fileFormat table |
72 |
for the `.gif', and '.GIF' extensions." |
|
73 |
||
26 | 74 |
Image fileFormats at:'.gif' put:self. |
75 |
Image fileFormats at:'.GIF' put:self. |
|
198 | 76 |
|
77 |
"Modified: 23.4.1996 / 12:28:16 / cg" |
|
26 | 78 |
! ! |
79 |
||
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
80 |
!GIFReader class methodsFor:'testing'! |
1 | 81 |
|
82 |
isValidImageFile:aFileName |
|
83 |
"return true, if aFileName contains a GIF image" |
|
84 |
||
85 |
|id inStream| |
|
86 |
||
9 | 87 |
inStream := self streamReadingFile:aFileName. |
1 | 88 |
inStream isNil ifTrue:[^ false]. |
89 |
||
332 | 90 |
inStream text. |
91 |
||
1 | 92 |
id := String new:6. |
93 |
inStream nextBytes:6 into:id. |
|
94 |
inStream close. |
|
95 |
||
96 |
(id = 'GIF87a') ifFalse:[ |
|
174 | 97 |
(id startsWith:'GIF') ifFalse:[^ false]. |
1 | 98 |
|
174 | 99 |
id ~= 'GIF89a' ifTrue:[ |
271 | 100 |
'GIFReader: not a GIF87a/GIF89a file - hope that works' infoPrintCR. |
174 | 101 |
] |
1 | 102 |
]. |
103 |
^ true |
|
174 | 104 |
|
271 | 105 |
"Modified: 20.5.1996 / 10:32:34 / cg" |
1 | 106 |
! ! |
107 |
||
0 | 108 |
!GIFReader methodsFor:'reading from file'! |
109 |
||
1 | 110 |
checkGreyscaleColormap |
239 | 111 |
"return true, if colormap is actually a greymap. |
112 |
Could be used to convert it into a greyScale image - which is not yet done." |
|
1 | 113 |
|
20 | 114 |
|sz "{ Class: SmallInteger }" |
115 |
redVal| |
|
116 |
||
117 |
sz := redMap size. |
|
118 |
||
119 |
1 to:sz do:[:i | |
|
239 | 120 |
redVal := redMap at:i. |
121 |
redVal ~~ (greenMap at:i) ifTrue:[^ false]. |
|
122 |
redVal ~~ (blueMap at:i) ifTrue:[^ false]. |
|
1 | 123 |
]. |
124 |
^ true |
|
239 | 125 |
|
126 |
"Modified: 2.5.1996 / 17:54:40 / cg" |
|
1 | 127 |
! |
128 |
||
43 | 129 |
fromStream:aStream |
192 | 130 |
"read a stream containing a GIF image. |
131 |
Leave image description in instance variables." |
|
43 | 132 |
|
133 |
|byte index flag count |
|
134 |
colorMapSize bitsPerPixel scrWidth scrHeight |
|
135 |
hasColorMap hasLocalColorMap interlaced id |
|
136 |
leftOffs topOffs codeLen |
|
137 |
compressedData compressedSize |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
138 |
tmp srcOffset dstOffset isGif89 |
64 | 139 |
h "{ Class: SmallInteger }"| |
43 | 140 |
|
141 |
inStream := aStream. |
|
142 |
aStream binary. |
|
143 |
||
144 |
"GIF-files are always lsb (intel-world)" |
|
145 |
byteOrder := #lsb. |
|
146 |
||
331
304f9c439efa
allow reading from ByteArray-readStreams
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
147 |
id := ByteArray new:6. |
304f9c439efa
allow reading from ByteArray-readStreams
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
148 |
aStream nextBytes:6 into:id startingAt:1. |
304f9c439efa
allow reading from ByteArray-readStreams
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
149 |
id := id asString. |
43 | 150 |
|
151 |
"all I had for testing where GIF87a files; |
|
152 |
I hope later versions work too ..." |
|
153 |
||
154 | 154 |
isGif89 := false. |
43 | 155 |
(id ~= 'GIF87a') ifTrue:[ |
154 | 156 |
(id startsWith:'GIF') ifFalse:[ |
271 | 157 |
'GIFReader: not a gif file' infoPrintCR. |
154 | 158 |
^ nil |
159 |
]. |
|
160 |
id ~= 'GIF89a' ifTrue:[ |
|
271 | 161 |
'GIFReader: not a GIF87a/GIF89a file - hope that works' infoPrintCR. |
154 | 162 |
] |
43 | 163 |
]. |
164 |
||
165 |
"get screen dimensions (not used)" |
|
166 |
||
167 |
scrWidth := aStream nextShortMSB:false. |
|
168 |
scrHeight := aStream nextShortMSB:false. |
|
169 |
||
170 |
"get flag byte" |
|
171 |
flag := aStream nextByte. |
|
172 |
hasColorMap := (flag bitAnd:2r10000000) ~~ 0. |
|
173 |
"bitsPerRGB := ((flag bitAnd:2r01110000) bitShift:-4) + 1. " |
|
174 |
"colorMapSorted := ((flag bitAnd:2r00001000) ~~ 0. " |
|
175 |
bitsPerPixel := (flag bitAnd:2r00000111) + 1. |
|
176 |
colorMapSize := 1 bitShift:bitsPerPixel. |
|
177 |
||
178 |
"get background (not used)" |
|
179 |
aStream nextByte. |
|
180 |
||
181 |
"aspect ratio (not used)" |
|
182 |
aStream nextByte. |
|
183 |
||
184 |
"get colorMap" |
|
185 |
hasColorMap ifTrue:[ |
|
154 | 186 |
self readColorMap:colorMapSize |
43 | 187 |
]. |
188 |
||
154 | 189 |
"skip gif89a extensions " |
43 | 190 |
byte := aStream nextByte. |
154 | 191 |
[byte == 16r21] whileTrue:[ |
192 |
"/ extension |
|
193 |
self readExtension:aStream. |
|
194 |
byte := aStream nextByte. |
|
195 |
]. |
|
196 |
||
197 |
"must now be image separator" |
|
43 | 198 |
(byte ~~ 16r2C) ifTrue:[ |
271 | 199 |
('GIFReader: corrupted gif file (no IMAGESEP): ' , (byte printStringRadix:16)) infoPrintCR. |
154 | 200 |
^ nil |
43 | 201 |
]. |
202 |
||
203 |
"get image data" |
|
204 |
leftOffs := aStream nextShortMSB:false. |
|
205 |
topOffs := aStream nextShortMSB:false. |
|
206 |
width := aStream nextShortMSB:false. |
|
207 |
height := aStream nextShortMSB:false. |
|
208 |
||
209 |
" |
|
210 |
'width ' print. width printNewline. |
|
211 |
'height ' print. height printNewline. |
|
212 |
" |
|
213 |
||
214 |
"another flag byte" |
|
215 |
flag := aStream nextByte. |
|
216 |
interlaced := (flag bitAnd:2r01000000) ~~ 0. |
|
217 |
hasLocalColorMap := (flag bitAnd:2r10000000) ~~ 0. |
|
218 |
"localColorMapSorted := (flag bitAnd:2r00100000) ~~ 0. " |
|
219 |
||
220 |
"if image has a local colormap, this one is used" |
|
221 |
||
222 |
hasLocalColorMap ifTrue:[ |
|
154 | 223 |
"local descr. overwrites" |
224 |
bitsPerPixel := (flag bitAnd:2r00000111) + 1. |
|
225 |
colorMapSize := 1 bitShift:bitsPerPixel. |
|
43 | 226 |
" 'local colormap' printNewline. " |
154 | 227 |
"overwrite colormap" |
228 |
self readColorMap:colorMapSize |
|
43 | 229 |
]. |
230 |
||
231 |
"get codelen for decompression" |
|
232 |
codeLen := aStream nextByte. |
|
233 |
||
234 |
compressedData := ByteArray uninitializedNew:(aStream size). |
|
235 |
||
236 |
"get compressed data" |
|
237 |
index := 1. |
|
238 |
count := aStream nextByte. |
|
239 |
[count notNil and:[count ~~ 0]] whileTrue:[ |
|
154 | 240 |
aStream nextBytes:count into:compressedData startingAt:index. |
241 |
index := index + count. |
|
242 |
count := aStream nextByte |
|
43 | 243 |
]. |
244 |
compressedSize := index - 1. |
|
245 |
||
64 | 246 |
h := height. |
247 |
data := ByteArray new:((width + 1) * (h + 1)). |
|
271 | 248 |
"/ 'GIFReader: decompressing ...' infoPrintCR. |
43 | 249 |
|
250 |
self class decompressGIFFrom:compressedData |
|
154 | 251 |
count:compressedSize |
252 |
into:data |
|
253 |
startingAt:1 |
|
254 |
codeLen:(codeLen + 1). |
|
43 | 255 |
|
256 |
interlaced ifTrue:[ |
|
312 | 257 |
'GIFREADER: deinterlacing ...' infoPrintCR. |
154 | 258 |
tmp := ByteArray new:(data size). |
43 | 259 |
|
154 | 260 |
"phase 1: 0, 8, 16, 24, ..." |
43 | 261 |
|
154 | 262 |
srcOffset := 1. |
263 |
0 to:(h - 1) by:8 do:[:dstRow | |
|
264 |
dstOffset := dstRow * width + 1. |
|
265 |
tmp replaceFrom:dstOffset to:(dstOffset + width - 1) |
|
266 |
with:data startingAt:srcOffset. |
|
267 |
srcOffset := srcOffset + width. |
|
268 |
]. |
|
43 | 269 |
|
154 | 270 |
"phase 2: 4, 12, 20, 28, ..." |
43 | 271 |
|
154 | 272 |
4 to:(h - 1) by:8 do:[:dstRow | |
273 |
dstOffset := dstRow * width + 1. |
|
274 |
tmp replaceFrom:dstOffset to:(dstOffset + width - 1) |
|
275 |
with:data startingAt:srcOffset. |
|
276 |
srcOffset := srcOffset + width. |
|
277 |
]. |
|
43 | 278 |
|
154 | 279 |
"phase 3: 2, 6, 10, 14, ..." |
43 | 280 |
|
154 | 281 |
2 to:(h - 1) by:4 do:[:dstRow | |
282 |
dstOffset := dstRow * width + 1. |
|
283 |
tmp replaceFrom:dstOffset to:(dstOffset + width - 1) |
|
284 |
with:data startingAt:srcOffset. |
|
285 |
srcOffset := srcOffset + width. |
|
286 |
]. |
|
43 | 287 |
|
154 | 288 |
"phase 4: 1, 3, 5, 7, ..." |
43 | 289 |
|
154 | 290 |
1 to:(h - 1) by:2 do:[:dstRow | |
291 |
dstOffset := dstRow * width + 1. |
|
292 |
tmp replaceFrom:dstOffset to:(dstOffset + width - 1) |
|
293 |
with:data startingAt:srcOffset. |
|
294 |
srcOffset := srcOffset + width. |
|
295 |
]. |
|
43 | 296 |
|
154 | 297 |
data := tmp. |
298 |
tmp := nil |
|
43 | 299 |
]. |
300 |
||
301 |
photometric := #palette. |
|
302 |
samplesPerPixel := 1. |
|
303 |
bitsPerSample := #(8). |
|
304 |
||
305 |
"check if only grey values are used, |
|
306 |
could make it a greyscale image if so (currently not done)" |
|
307 |
||
83 | 308 |
"/ self checkGreyscaleColormap ifTrue:[ |
309 |
"/ self makeGreyscale |
|
310 |
"/ ]. |
|
311 |
||
239 | 312 |
colorMap := Colormap |
313 |
redVector:redMap |
|
314 |
greenVector:greenMap |
|
315 |
blueVector:blueMap. |
|
43 | 316 |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
317 |
maskPixelValue notNil ifTrue:[ |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
318 |
"/ |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
319 |
"/ ok, there is a maskValue |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
320 |
"/ build a Depth1Image for it. |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
321 |
"/ |
315
506e0ce38534
Moved #buildMask from GIFReader to ImageReader>>#buildMaskFromColor:
Stefan Vogel <sv@exept.de>
parents:
312
diff
changeset
|
322 |
self buildMaskFromColor:maskPixelValue |
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
323 |
]. |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
324 |
|
43 | 325 |
" |
326 |
GIFReader fromFile:'../fileIn/bitmaps/claus.gif |
|
327 |
GIFReader fromFile:'../fileIn/bitmaps/garfield.gif' |
|
328 |
" |
|
154 | 329 |
|
315
506e0ce38534
Moved #buildMask from GIFReader to ImageReader>>#buildMaskFromColor:
Stefan Vogel <sv@exept.de>
parents:
312
diff
changeset
|
330 |
"Modified: 5.7.1996 / 17:32:01 / stefan" |
331
304f9c439efa
allow reading from ByteArray-readStreams
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
331 |
"Modified: 13.9.1996 / 18:41:06 / cg" |
135 | 332 |
! |
333 |
||
334 |
makeGreyscale |
|
335 |
"not yet implemented/needed" |
|
336 |
! |
|
337 |
||
338 |
readColorMap:colorMapSize |
|
339 |
"get gif colormap consisting of colorMapSize entries" |
|
340 |
||
341 |
|sz "{ Class: SmallInteger }"| |
|
342 |
||
343 |
redMap := ByteArray uninitializedNew:colorMapSize. |
|
344 |
greenMap := ByteArray uninitializedNew:colorMapSize. |
|
345 |
blueMap := ByteArray uninitializedNew:colorMapSize. |
|
239 | 346 |
|
135 | 347 |
sz := colorMapSize. |
348 |
1 to:sz do:[:i | |
|
239 | 349 |
redMap at:i put:(inStream nextByte). |
350 |
greenMap at:i put:(inStream nextByte). |
|
351 |
blueMap at:i put:(inStream nextByte) |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
352 |
]. |
239 | 353 |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
354 |
"Modified: 21.6.1996 / 12:32:43 / cg" |
154 | 355 |
! |
356 |
||
357 |
readExtension:aStream |
|
239 | 358 |
"get gif89 extension - this is currently ignored" |
154 | 359 |
|
360 |
|type blockSize subBlockSize |
|
304 | 361 |
aspNum aspDen left top width height cWidth cHeight fg bg |
362 |
animationType animationTime animationMask| |
|
154 | 363 |
|
364 |
type := aStream nextByte. |
|
365 |
type == $R asciiValue ifTrue:[ |
|
239 | 366 |
"/ |
154 | 367 |
"/ Ratio extension |
239 | 368 |
"/ |
271 | 369 |
'GIFREADER: ratio extension ignored' infoPrintCR. |
154 | 370 |
blockSize := aStream nextByte. |
371 |
(blockSize == 2) ifTrue:[ |
|
372 |
aspNum := aStream nextByte. |
|
373 |
aspDen := aStream nextByte |
|
374 |
] ifFalse:[ |
|
375 |
aStream skip:blockSize |
|
376 |
]. |
|
377 |
"/ eat subblocks |
|
378 |
||
379 |
[(subBlockSize := aStream nextByte) > 0] whileTrue:[ |
|
380 |
aStream skip:subBlockSize |
|
239 | 381 |
]. |
382 |
^ self |
|
383 |
]. |
|
384 |
||
385 |
type == 16rFE ifTrue:[ |
|
386 |
"/ |
|
387 |
"/ comment extension |
|
388 |
"/ |
|
271 | 389 |
'GIFREADER: comment extension ignored' infoPrintCR. |
239 | 390 |
[(blockSize := aStream nextByte) ~~ 0] whileTrue:[ |
391 |
aStream skip:blockSize |
|
392 |
]. |
|
393 |
^ self |
|
394 |
]. |
|
395 |
||
396 |
type == 16r01 ifTrue:[ |
|
397 |
"/ |
|
398 |
"/ plaintext extension |
|
399 |
"/ |
|
271 | 400 |
'GIFREADER: plaintext extension ignored' infoPrintCR. |
239 | 401 |
subBlockSize := aStream nextByte. |
402 |
left := aStream nextShortMSB:false. |
|
403 |
top := aStream nextShortMSB:false. |
|
404 |
width := aStream nextShortMSB:false. |
|
405 |
height := aStream nextShortMSB:false. |
|
406 |
cWidth := aStream nextByte. |
|
407 |
cHeight := aStream nextByte. |
|
408 |
fg := aStream nextByte. |
|
409 |
bg := aStream nextByte. |
|
410 |
aStream skip:12. |
|
411 |
[(subBlockSize := aStream nextByte) > 0] whileTrue:[ |
|
412 |
aStream skip:subBlockSize |
|
413 |
]. |
|
414 |
^ self |
|
415 |
]. |
|
416 |
||
417 |
type == 16rF9 ifTrue:[ |
|
418 |
"/ |
|
419 |
"/ graphic control extension |
|
420 |
"/ |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
421 |
"/ 'GIFREADER: graphic control extension ignored' infoPrintCR. |
304 | 422 |
subBlockSize := aStream nextByte. |
305 | 423 |
|
424 |
"/ type=1 means: animationMask is transparent pixel |
|
425 |
"/ to be implemented in Image ... |
|
426 |
||
304 | 427 |
animationType := aStream nextByte. |
428 |
animationTime := aStream nextShortMSB:false. |
|
429 |
animationMask := aStream nextByte. |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
430 |
|
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
431 |
animationType == 1 ifTrue:[ |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
432 |
maskPixelValue := animationMask. |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
433 |
"/ 'GIFREADER: mask: ' infoPrint. (maskPixelValue printStringRadix:16) infoPrintCR. |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
434 |
]. |
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
435 |
|
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
436 |
[(subBlockSize := aStream nextByte) > 0] whileTrue:[ |
239 | 437 |
aStream skip:subBlockSize |
438 |
]. |
|
439 |
^ self |
|
440 |
]. |
|
441 |
||
442 |
type == 16rFF ifTrue:[ |
|
443 |
"/ |
|
444 |
"/ application extension |
|
445 |
"/ |
|
271 | 446 |
'GIFREADER: application extension ignored' infoPrintCR. |
239 | 447 |
[(subBlockSize := aStream nextByte) > 0] whileTrue:[ |
448 |
aStream skip:subBlockSize |
|
449 |
]. |
|
450 |
^ self |
|
451 |
]. |
|
452 |
||
453 |
"/ |
|
454 |
"/ unknown extension |
|
455 |
"/ |
|
271 | 456 |
'GIFREADER: unknown extension ignored' infoPrintCR. |
239 | 457 |
[(subBlockSize := aStream nextByte) > 0] whileTrue:[ |
458 |
aStream skip:subBlockSize |
|
154 | 459 |
] |
460 |
||
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
461 |
"Modified: 21.6.1996 / 12:44:25 / cg" |
0 | 462 |
! ! |
43 | 463 |
|
307
9eaeaca798a5
create a mask-image, if present
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
464 |
!GIFReader class methodsFor:'documentation'! |
135 | 465 |
|
466 |
version |
|
332 | 467 |
^ '$Header: /cvs/stx/stx/libview2/GIFReader.st,v 1.41 1996-09-14 08:45:11 cg Exp $' |
135 | 468 |
! ! |
43 | 469 |
GIFReader initialize! |