Re: Anyone have any info on the Delphi bitmaps?
From: Jim Carlock (anonymous_at_localhost.com)
Date: 11/29/04
- Next message: YYZ: "Re: Bitwise Comparison fails unexpectantly"
- Previous message: Jerry West: "Bitwise Comparison fails unexpectantly"
- In reply to: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Next in thread: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Reply: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 15:06:23 -0500
Yeah, you are 100% correct. I pulled the BMP format
from wotsit.org and I can see the file identifying itself at
that BM mark as a bitmap. Thanks! That's great!
I kept looking at the first 10 bytes trying to figure out
what those were. It looks like the first two "IL" are
probably the initials of the guy that created that header.
Everything after the 424D is saying Windows Bitmap.
It looks like that dfm file is a Delphi 6 file. I've found
some other .dfm files that appear to be from a previous
version of Delphi (3 or 4, I think). Those olders one
appear to be similar to the VB3 binary files.
You use Delphi at all, Mike?
--
Jim Carlock
Post replies to newsgroup.
"Mike D Sutton" <EDais@mvps.org> wrote in message
news:OuMBbwg1EHA.2572@tk2msftngp13.phx.gbl...
> .dfm files (delphi I think) tend to hold bitmap information
> about delphi forms (I think). The way the information is
> organized is as follows:
>
> Bitmap = {
> 494C010110001300040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
>
> If anyone has done any research on these and can offer
> any help as to how it's laid out, that would be great.
>
> It looks like the images in an FF format but I don't know
> if they're organized as 32 bit (4 bytes at a time) or 3 bytes
> at a time (RGB, BGR ?).
>From a quick look it looks like a standard .BMP file with an additional
header of some description at the start, the Bitmap data
starts "424D" (ASCII "BM") followed by a DWord containing the length of the
rest of the file (i.e. the amount to read out of the
file.) Since it's stored as ASCII though then you'll need to step through
each character and convert it back to hex before writing
it out to a file opened in Binary mode, and at least here it puts in lots of
hard line breaks and whitespace which you'll need to
cater for.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: http://EDais.mvps.org/
- Next message: YYZ: "Re: Bitwise Comparison fails unexpectantly"
- Previous message: Jerry West: "Bitwise Comparison fails unexpectantly"
- In reply to: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Next in thread: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Reply: Mike D Sutton: "Re: Anyone have any info on the Delphi bitmaps?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|