John,
As a for instance, in the TSWEEP.DO file, I have an AP string:
"AP4%C#czrrzlT"
This string fills a black rectangle that is 192x64 pixels on the LCD.
The encoding specifies the image geometry (AP4%C#c) and the pixel data
(zrrzlT).
Images that are smaller than 88x88 pixels have a smaller image
geometry: AP3)+ for instance.
Ken
On 4/25/17 6:51 PM, John R. Hogerhuis wrote:
On Tue, Apr 25, 2017 at 6:47 PM, Ken Pettit <[email protected]
<mailto:[email protected]>> wrote:
Hi John,
Yes, it does compression. Runs of pixels that are the same color
(either on or off) are compressed into either one, two or three
bytes depending on the length of the run.
I did some tests taking a PBM binary file compressed with WinZip
and compared it with the compression in AP. In some cases, AP is
actually better (small images ... no dictionary needed). On
larger images, WinZip was only 7-8% better on average.
Ken
Very nice. You probably told me before but it's been a while.
-- John.