Depth16Image.st
changeset 3866 c01473a90934
parent 3263 bd92a12c9316
child 3868 e47cf114c824
--- a/Depth16Image.st	Mon Apr 28 12:15:34 2003 +0200
+++ b/Depth16Image.st	Tue Apr 29 20:45:23 2003 +0200
@@ -100,8 +100,10 @@
      Notice: row indexing starts at 0."
 
     |dstIdx "{ Class: SmallInteger }"
-      pixel|
+     pixel
+     bytes|
 
+    bytes := self bits.
     dstIdx := (width * 2 * rowIndex) + 1.
     1 to:width do:[:col |
         pixel := pixelArray at:(startIndex + col - 1).
@@ -112,7 +114,6 @@
     ^ pixelArray
 
     "Created: 24.4.1997 / 15:50:27 / cg"
-
 ! !
 
 !Depth16Image methodsFor:'queries'!
@@ -138,5 +139,5 @@
 !Depth16Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Depth16Image.st,v 1.9 2000-08-21 22:43:25 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth16Image.st,v 1.10 2003-04-29 18:45:13 cg Exp $'
 ! !