class: XPMReader
authorClaus Gittinger <cg@exept.de>
Thu, 04 Dec 2014 02:29:39 +0100
changeset 3419 2e30918fce3a
parent 3418 a758dd978f99
child 3420 52646fb62106
class: XPMReader changed: #canRepresent:
XPMReader.st
--- a/XPMReader.st	Thu Dec 04 00:07:59 2014 +0100
+++ b/XPMReader.st	Thu Dec 04 02:29:39 2014 +0100
@@ -132,8 +132,8 @@
     anImage photometric == #palette ifTrue:[
         anImage colorMap size < 256 ifTrue:[^ true].
     ].
-    anImage usedColors size < 256 ifTrue:[^ true].
-    ('XPMReader [info]: too many colors in image.') infoPrintCR.
+    (anImage usedColorsMax:256) notNil ifTrue:[^ true].
+    ('XPMReader [info]: too many colors in image (only up to 256 supported).') infoPrintCR.
     ^ false
 
     "Modified: 27.2.1997 / 12:40:22 / cg"
@@ -648,11 +648,12 @@
 !XPMReader class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.65 2013-02-08 12:49:41 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.66 2014-12-04 01:29:39 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.65 2013-02-08 12:49:41 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/XPMReader.st,v 1.66 2014-12-04 01:29:39 cg Exp $'
 ! !
 
+
 XPMReader initialize!