ImageEditView.st
changeset 5266 527277fcb66c
parent 5163 955f893d03f2
child 5277 4d6ef5c2aa64
--- a/ImageEditView.st	Wed Oct 05 16:26:51 2016 +0200
+++ b/ImageEditView.st	Fri Oct 07 10:15:51 2016 +0200
@@ -2798,8 +2798,6 @@
 !
 
 imageInfoString
-    |usedColors|
-
     image isNil ifTrue: [^ 'No image loaded.']. 
     ^ String streamContents:[:s |
         s print:image width.
@@ -2811,17 +2809,7 @@
         s print:'bit'.
         image mask notNil ifTrue: [s print:'+mask'].
 
-        image depth <= 16 ifTrue:[
-            s print:' ['.
-            s print:(2 raisedTo: image depth).
-            s print:'colors]'.
-        ].
-        image colorMap notNil ifTrue: [
-            usedColors := image usedColors size.
-            s print:' ('.
-            s print:usedColors.
-            s print:' used)'
-        ].
+        ' [%1/%2 colors]' expandPlaceholdersWith:{image nColorsUsed. (2 raisedTo: image depth)} on:s.
     ].
 !