Re: working with bitmaps in C



Flash Gordon wrote:

Malcolm McLean wrote, On 27/12/07 17:16:
"Ernie Wright" <erniew@xxxxxxxxxxx> wrote

The specification claims that 4-bit old-style BMP has a 16-color
palette. It's been so long since I've encountered one of these
that I wouldn't know where to look for one now. Unless you know of
users that actually have to deal with these (they haven't been
written by Microsoft code since Windows 2.x), I'd be tempted to
strip all of that cruft out of your loader.

The version of Paint in Windows Vista claims to be able to save a 16 colour bitmap. I've no idea if the format is the same, but I see no reason why it would not be.

It's not. Old-style BMP, what Malcolm's code calls "core" BMP, is an
obsolete form of BMP with a different header. This older form was used
by Windows 1.x and 2.x and OS/2 1.x.

- Ernie http://home.comcast.net/~erniew
.