#FEATURE by cg
class: Depth24Image
added:
#numAlphaBits
#numBlueBits
#numGreenBits
#numRedBits
--- a/Depth24Image.st Thu Aug 17 12:48:57 2017 +0200
+++ b/Depth24Image.st Tue Aug 22 17:41:49 2017 +0200
@@ -3352,6 +3352,30 @@
^ -8
!
+numAlphaBits
+ ^ 0
+
+ "Created: / 22-08-2017 / 17:41:07 / cg"
+!
+
+numBlueBits
+ ^ 8
+
+ "Created: / 22-08-2017 / 17:41:19 / cg"
+!
+
+numGreenBits
+ ^ 8
+
+ "Created: / 22-08-2017 / 17:41:15 / cg"
+!
+
+numRedBits
+ ^ 8
+
+ "Created: / 22-08-2017 / 17:41:12 / cg"
+!
+
redBitsOf:pixel
"given a pixel-value, return the red component as byteValue (0..255)"