Bitmap 3,4,5 specs

Programming, for all ages and all languages.
Post Reply
User avatar
Karlosoft
Member
Member
Posts: 277
Joined: Thu Feb 14, 2008 10:46 am
Location: Italy
Contact:

Bitmap 3,4,5 specs

Post by Karlosoft »

Hi! I looked for them on google but I have not found anything. Could anybody give me a link?
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Bitmap 3,4,5 specs

Post by Love4Boobies »

What the hell is "Bitmap 3, 4, 5"?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Bitmap 3,4,5 specs

Post by Brendan »

Hi,
Love4Boobies wrote:What the hell is "Bitmap 3, 4, 5"?
Probably the BMP file format; where "3, 4, 5" corresponds to "Windows V3, Windows V4 and Windows V5".

@Karlosoft: You should be able to figure it out from the Wikipedia page (in the link above), especially if you look at the "External Links" section.


Cheers,

Brendan\
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Bitmap 3,4,5 specs

Post by Love4Boobies »

Hmm, I don't think those are different formats. I went looking for the specs myself a few years ago - you'll find the information you need on MSDN, obviously. IIRC, there are only 2 types - DIB (Device Independent Bitmap) and DDB (guess).

Not sure that's what he meant though, who calls Windows 9x "4" and XP "5"? (Even if the versions numbers do correspond)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Karlosoft
Member
Member
Posts: 277
Joined: Thu Feb 14, 2008 10:46 am
Location: Italy
Contact:

Re: Bitmap 3,4,5 specs

Post by Karlosoft »

Yeah they aren't :) They are different versions of the bitmap specs.
For example version five allow to use an alpha channel :)
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Bitmap 3,4,5 specs

Post by Love4Boobies »

Hmm, I wasn't aware of alpha channels in BMPs. Apparently, they are stored as separate bitmaps. You should look into a different format though, BMPs take a lot of disk space. Even if they are probably the easiest format de (en/de)code, PCX is almost equally easy. My personal favourite is PNG.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Gigasoft
Member
Member
Posts: 855
Joined: Sat Nov 21, 2009 5:11 pm

Re: Bitmap 3,4,5 specs

Post by Gigasoft »

The structures are actually named BITMAPINFOHEADER, BITMAPV4HEADER and BITMAPV5HEADER. However, BITMAPINFOHEADER was invented before Windows 3.0 (it was inherited from OS/2, I think).
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Bitmap 3,4,5 specs

Post by bewing »

They are defined in WinGDI.h in any SDK release, or probably in mingw's include files.
Post Reply