equal
deleted
inserted
replaced
1764 for (__y=__h; __y>0; __y--) { |
1764 for (__y=__h; __y>0; __y--) { |
1765 __outBits = 0; |
1765 __outBits = 0; |
1766 __nOut = 8; |
1766 __nOut = 8; |
1767 __nextOutRow = __outP + __bpr; |
1767 __nextOutRow = __outP + __bpr; |
1768 |
1768 |
1769 for (__x=__w; __x>0; __x--) { |
1769 for (__x=__w; __x>=8; __x-=8) { |
|
1770 if (__inP[0] != __maskPixel) { __outBits |= 0x80; }; |
|
1771 if (__inP[1] != __maskPixel) { __outBits |= 0x40; }; |
|
1772 if (__inP[2] != __maskPixel) { __outBits |= 0x20; }; |
|
1773 if (__inP[3] != __maskPixel) { __outBits |= 0x10; }; |
|
1774 if (__inP[4] != __maskPixel) { __outBits |= 0x08; }; |
|
1775 if (__inP[5] != __maskPixel) { __outBits |= 0x04; }; |
|
1776 if (__inP[6] != __maskPixel) { __outBits |= 0x02; }; |
|
1777 if (__inP[7] != __maskPixel) { __outBits |= 0x01; }; |
|
1778 __inP += 8; |
|
1779 *__outP++ = __outBits; |
|
1780 __outBits = 0; |
|
1781 } |
|
1782 for (; __x>0; __x--) { |
1770 __outBits <<= 1; |
1783 __outBits <<= 1; |
1771 if (*__inP != __maskPixel) { |
1784 if (*__inP != __maskPixel) { |
1772 __outBits |= 1; |
1785 __outBits |= 1; |
1773 } |
1786 } |
1774 __inP++; |
1787 __inP++; |
1843 ! ! |
1856 ! ! |
1844 |
1857 |
1845 !ImageReader class methodsFor:'documentation'! |
1858 !ImageReader class methodsFor:'documentation'! |
1846 |
1859 |
1847 version |
1860 version |
1848 ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.52 1997-07-22 15:48:23 cg Exp $' |
1861 ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.53 1997-07-24 16:05:20 cg Exp $' |
1849 ! ! |
1862 ! ! |