--- a/PBMReader.st Fri Apr 04 11:16:33 1997 +0200
+++ b/PBMReader.st Fri Apr 04 11:17:35 1997 +0200
@@ -39,7 +39,8 @@
images (Jef Poskanzers portable bitmap package).
Reading is supported for 1bit (pbm), greyscale (pgm) and 24bit (ppm) formats.
- Currently, only writing of 1-bit images (Pbm) is supported.
+ (i.e. P1, P3, P4, P5 and P6 formats)
+ Currently, only writing of 1-bit images (pbm) is supported.
Q: should we bring this one to perfection and base all others on
pipe-readers to the various pbmplus converters ?
@@ -80,11 +81,11 @@
inStream next ~~ $P ifTrue:[^ false].
pnmType := inStream next.
- (#( $1 $4 $5 $6 ) includes:pnmType) ifFalse:[^ false].
+ (#( $1 $3 $4 $5 $6 ) includes:pnmType) ifFalse:[^ false].
^ true
"Created: 18.6.1996 / 13:58:59 / cg"
- "Modified: 18.6.1996 / 14:06:39 / cg"
+ "Modified: 4.4.1997 / 11:17:11 / cg"
! !
!PBMReader methodsFor:'private'!
@@ -140,7 +141,7 @@
!PBMReader methodsFor:'reading from file'!
fromStream:aStream
- "read a Portable bitmap file format as of Jef Poskanzers Portable Bitmap Package.
+ "read a Portable bitmap file format as of Jeff Poskanzers Portable Bitmap Package.
supported are PBM, PGB and PNM files."
| pnmType |
@@ -178,7 +179,7 @@
PBMReader fromFile:'/home2/cg/ppm2fli_b1-92/jeff.001'
"
- "Modified: 4.4.1997 / 11:08:43 / cg"
+ "Modified: 4.4.1997 / 11:17:24 / cg"
!
readDepth1AsciiPBMStream:aStream
@@ -513,6 +514,6 @@
!PBMReader class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview2/PBMReader.st,v 1.23 1997-04-04 09:16:33 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/PBMReader.st,v 1.24 1997-04-04 09:17:35 cg Exp $'
! !
PBMReader initialize!