--- a/PNGReader.st Fri Jul 31 15:06:56 2009 +0200
+++ b/PNGReader.st Fri Jul 31 19:56:56 2009 +0200
@@ -502,7 +502,7 @@
'PNGReader: invalid colorType/depth combination' infoPrintCR.
^ false.
].
- photometric := #rgb.
+ photometric := #rgba.
samplesPerPixel := 4.
bitsPerSample := Array with:depth with:depth with:depth with:depth.
^ true.
@@ -575,10 +575,6 @@
blueVector:blueBytes.
].
- photometric == #rgb ifTrue:[
- ].
-
- self halt.
"
PNGReader fromFile:'/home/cg/libpng-0.89c/pngtest.png'
"
@@ -661,7 +657,7 @@
!PNGReader class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview2/PNGReader.st,v 1.15 2009-07-31 13:06:56 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/PNGReader.st,v 1.16 2009-07-31 17:56:56 cg Exp $'
! !
PNGReader initialize!