pixelfunction support
authorClaus Gittinger <cg@exept.de>
Sun, 02 Mar 2014 14:59:34 +0100
changeset 6298 c2980b510cf1
parent 6297 ea0fe952c3a5
child 6299 83fea4366ebd
pixelfunction support
Depth4Image.st
--- a/Depth4Image.st	Sun Mar 02 14:59:31 2014 +0100
+++ b/Depth4Image.st	Sun Mar 02 14:59:34 2014 +0100
@@ -80,16 +80,18 @@
      byteIndex "{ Class: SmallInteger }"
      byte      "{ Class: SmallInteger }" |
 
+    pixelFunction notNil ifTrue:[^ pixelFunction value:x value:y].
+
     lineIndex := (self bytesPerRow * y) + 1.
     byteIndex := lineIndex + (x // 2).
 
     "left pixel in high bits"
     byteIndex > bytes size ifTrue:[
-	^ 0
+        ^ 0
     ].
     byte := bytes at:byteIndex.
     x even ifTrue:[
-	^ (byte bitShift:-4) bitAnd:16rF.
+        ^ (byte bitShift:-4) bitAnd:16rF.
     ].
     ^ byte bitAnd:16rF.
 
@@ -1047,9 +1049,10 @@
 !Depth4Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Depth4Image.st,v 1.52 2013-05-21 20:50:48 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth4Image.st,v 1.53 2014-03-02 13:59:34 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/Depth4Image.st,v 1.52 2013-05-21 20:50:48 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth4Image.st,v 1.53 2014-03-02 13:59:34 cg Exp $'
 ! !
+