Advertisement

mmx.. and BMP's

Started by April 21, 2000 11:08 PM
1 comment, last by ranxact 24 years, 8 months ago
hey.. i have 3 questions 1. where can i find info on the header format of 8-bit BMP''s... (i need to create them dynamically) 2. how does one make MASM compile MMX code.. every time i try it, it says that i am not in the correct CPU mode.. how do i fix this... 3. when i create the BMP''s in system memory i then blit them into video memory with directdraw.. is there a faster way .. i.e. can i write the images straight to video memory? Thanx for the info RanXacT
RanXact@yahoo.com
Try this

typedef struct tagBITMAPFILEHEADER { // bmfh

WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFILEHEADER;


The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a device-independent bitmap (DIB).

Members

bfType

Specifies the file type. It must be BM.

bfSize

Specifies the size, in bytes, of the bitmap file.

bfReserved1

Reserved; must be zero.

bfReserved2

Reserved; must be zero.

bfOffBits

Specifies the offset, in bytes, from the BITMAPFILEHEADER structure to the bitmap bits.

Remarks

A BITMAPINFO or BITMAPCOREINFO structure immediately follows the BITMAPFILEHEADER structure in the DIB file.

See Also

BITMAPCOREINFO, BITMAPINFO
Advertisement
Offset 0x12: DWORD -> X - resolution
0x16: DWORD -> Y - resolution
0x1C: WORD -> colordepth in bits

Visit our homepage: www.rarebyte.de.st

GA
Visit our homepage: www.rarebyte.de.stGA

This topic is closed to new replies.

Advertisement