I discovered (after posting) that the code didn't work for all image sizes - specifically odd widths. There was some special case code for odd horizontal pixel positions but that only worked for full size images.
The new version fixes the bug and seems to work for all image sizes (odd and even widths) and positions (odd and even horizontal position). It has only been tested on a Wifi eReader with 4-bit display.
|