--- a/ImageReader.st Thu Jul 24 16:20:49 1997 +0200
+++ b/ImageReader.st Thu Jul 24 18:05:20 1997 +0200
@@ -1766,7 +1766,20 @@
__nOut = 8;
__nextOutRow = __outP + __bpr;
- for (__x=__w; __x>0; __x--) {
+ for (__x=__w; __x>=8; __x-=8) {
+ if (__inP[0] != __maskPixel) { __outBits |= 0x80; };
+ if (__inP[1] != __maskPixel) { __outBits |= 0x40; };
+ if (__inP[2] != __maskPixel) { __outBits |= 0x20; };
+ if (__inP[3] != __maskPixel) { __outBits |= 0x10; };
+ if (__inP[4] != __maskPixel) { __outBits |= 0x08; };
+ if (__inP[5] != __maskPixel) { __outBits |= 0x04; };
+ if (__inP[6] != __maskPixel) { __outBits |= 0x02; };
+ if (__inP[7] != __maskPixel) { __outBits |= 0x01; };
+ __inP += 8;
+ *__outP++ = __outBits;
+ __outBits = 0;
+ }
+ for (; __x>0; __x--) {
__outBits <<= 1;
if (*__inP != __maskPixel) {
__outBits |= 1;
@@ -1845,5 +1858,5 @@
!ImageReader class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.52 1997-07-22 15:48:23 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.53 1997-07-24 16:05:20 cg Exp $'
! !