class: Depth8Image
authorClaus Gittinger <cg@exept.de>
Wed, 05 Mar 2014 16:26:38 +0100
changeset 6310 612c17181395
parent 6309 d12f01f0e52e
child 6311 0986d91407d9
class: Depth8Image comment/format in: #defaultPhotometric
Depth8Image.st
--- a/Depth8Image.st	Wed Mar 05 16:26:21 2014 +0100
+++ b/Depth8Image.st	Wed Mar 05 16:26:38 2014 +0100
@@ -52,6 +52,12 @@
 !Depth8Image class methodsFor:'queries'!
 
 defaultPhotometric
+    "return the default photometric pixel interpretation.
+     This may be a somewhat old leftover from times, when tiff was the first image file type to be read.
+     Much better would be to always have some (possibly fake and virtual) colormap around, and ask that one.
+     However, in the meantime, many other classes depend on that, so that it should be kept as an API 
+     - even when the internal representation will be replaced by something better in the future."
+
     ^ #palette
 !
 
@@ -2454,10 +2460,10 @@
 !Depth8Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Depth8Image.st,v 1.121 2014-03-02 13:59:37 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth8Image.st,v 1.122 2014-03-05 15:26:38 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/Depth8Image.st,v 1.121 2014-03-02 13:59:37 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth8Image.st,v 1.122 2014-03-05 15:26:38 cg Exp $'
 ! !