Hey everyone,

I pushed a new version of ASCPIX.CO to my Personal Libraries section.

I found a couple of obscure bugs with AsciiPixels that would sometimes cause an image to wrap from the bottom of the LCD to the top instead of being cropped. Plus a render error with one of the opimization modes in pbm2ap. Most likely nobody would have found any of this yet (especially since pbm2ap wasn't previously published).

I added the source and a Makefile for pbm2ap, the utility that converts from a PBM (Pixel BitMap) format to AsciiPixels format. You will have to build this yourself, though it should be as simple as a 'make' under Linux or Mac. For Windows, maybe use Cygwin?

To use pbm2ap, export a black-and-white image of any size (that will fit on the LCD) to a PBM file, or use Imagemagik to convert it. Then use pbm2ap to convert it:

   ./pbm2ap  image.pbm  image.do

The resulting image.do file will contain the AsciiPixels encoded string. This file can either be copied to the M100/102 and rendered using

   F$="IMAGE.DO"
   call 58000,3,VARPTR(F$)

Or the string can be copied and assigned to a string (see ap_doc.txt for API details). In addition, the pbm2ap has two options that improve compression:

-u option Causes pbm2ap to also use the upper 128 ASCII characters for encoding -r option Causes pbm2ap to use ALL 256 ASCII characters for encoding. This is useful only for embedding images in an OptROM image.

I also add a super simple AsciiPixels demo application.

Ken

Reply via email to