1. XPM Library

I've sent Robert my latest goodie, and XPM library. An XPM encodes color
bitmaps in an ASCII-text format. This can be stored into a Euphoria program
as a text sequence, so you don't have to include external BMP files with
your application.

Although you probably wouldn't want to use it for *huge* bitmaps, it works
fine with smaller bitmaps.

If there is enough interest, I can create a more space-efficient library
that maps to either the default 16 bit or 256 color palette. That will cut
the size of a typical XPM in half, although it would no longer be in
standard format.

The library is platform independant; it doesn't rely on any Win32 (or
Win32Lib) code.


I've updated several other libraries as well:

[ Mines ]

My "Minesweeper" game now uses XPM files, so you can bind the code into a
single executable.

[ Win32Lib ]

This includes a small change to createDIB. The old version assumed the
indexes of the bitmap to the palette were 1 based. Since read_bitmap() uses
zero-based indexing, I've changed my code.

[ Dos32Lib ]

I've added the createDIB function so that Dos32Lib can run the latest
version of the Mines demo.

-- David Cuny

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu