From: ckaiser@stockholm.ptloma.edu (Cameron Kaiser) Newsgroups: comp.binaries.cbm Subject: xbmview.sda X Bitmap Viewer (4K) Followup-To: comp.sys.cbm Date: 10 Jan 2000 18:33:21 -0600 ****************************************************** *** *** *** comp.binaries.cbm is a moderated binaries- *** *** only newsgroup (no discussion or *** *** crossposting allowed) for Commodore 8-bits *** *** *** *** For information on comp.binaries.cbm visit *** *** http://stockholm.ptloma.edu/comp.binaries.cbm/ *** *** *** *** This file is also available via FTP from *** *** ftp://videocam.net.au/cbm/incoming *** *** (allow time for submission to be received) *** *** *** ****************************************************** xbmview.sda is an XBM (X Bitmap) viewer for the 64. I have released it as freeware. X bitmaps are actually small C constructs designed to be included in C programs. As such, they are plaintext and therefore quite inefficient for large images. However, they are commonly used for small clip images, and since they are plaintext can easily be included in 7-bit worlds like E-mail messages and Usenet. Furthermore, virtually all graphical web browsers understand it, including Netscape, Internet Explorer and even Mosaic to its very earliest version. xbmview.sda auto-dissolves when you RUN it into XBMVIEW and three sample images: BACK.XBM (a back arrow icon), BINARY.XBM (a binary file icon stolen from Gopher), and LETNUM.XBM (a letters and numbers example with a familiar font :-) generated with my genxbm utility). xbmview expects the .xbm files to be in *true ASCII* -- do not convert them to PET ASCII -- and requires the _height and _width defines to precede the array of unsigned char (if this makes no sense, don't worry about it). It is fairly lax about syntax, however: things that gcc would object strenuously to, will probably parse just fine if the data is there. :-) Because of the way xbmview is written, it is limited to images under 256x200 in size (which should not be a problem anyway). It does not yet handle colour images -- you will probably get some weird results of you try. :-) Cameron Kaiser