PNGReader.st
changeset 2698 787fb1038266
parent 2697 8e8223bf25af
child 2699 84b52c63e242
--- 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!