"Chris" == Chris Hawks <[EMAIL PROTECTED]> writes:
Chris> Bill: What do you know about the 'size' field in the compressed images.
Chris> Pilrc stores the compressed size as a short between the 16 byte header and
AFAIK:
If the Bitmap Data are compressed then the Bitmap Data starting with a
2 Byte filed with the size of the compressed Bitmap Data (The Size
field do _not_ follow the 16 byte header). If this Bitmap are version
2 you need also check the "flags" *) for "fourByteField" if this are
set you have four bytes here.
cu,
Dirk
*)
typedef struct BitmapFlagsType
{
UInt16 compressed:1; // Data format: 0=raw; 1=compressed
UInt16 hasColorTable:1; // if true, color table stored before bits[]
UInt16 hasTransparency:1; // true if transparency is used
UInt16 indirect:1; // true if bits are stored indirectly
UInt16 forScreen:1; // system use only
UInt16 directColor:1; // direct color bitmap
UInt16 fourByteField:1; // true if compressed size field is UInt32
UInt16 reserved:9;
}
BitmapFlagsType;
--
Permanent URLs to the latest Version (1.1.13) of the Plucker Windows installer
- For the Webpage: http://www.dirk-heiser.de/plucker
- Direct Download: http://www.dirk-heiser.de/plucker/plucker.exe [2.08MB]