View Full Version : Read bmp files in assembler of c++
Anyone has a code for reading bmp (uncompressed ) files in assembler, or at least on c++?
Assembler x86.
IceColdDuke
04-09-2005, 08:31 PM
Why not just read it in c++?
#include <windows.h>
You can use auxDIBImageLoad
_asm
{
mov eax, "myfilename"
push eax
call auxDIBImageLoad
}
KillerByte
04-10-2005, 08:55 AM
Well, auxDIBImageLoad isn't a Windows function. It's a function from the GLAux library for OpenGL.
IceColdDuke
04-10-2005, 03:58 PM
Your right...my mistake, I thought he said OpenGL.
Well anything that explains well how to read the ***** format with a code explaining or something?
Bludd
04-10-2005, 08:10 PM
http://www.wotsit.org/search.asp?s=graphics
http://www.gamedev.net/reference/articles/article202.asp <- 16 bit? http://forums.3drealms.com/ubbthreads/images/graemlins/grin.gif
This is not code, but it explains the file format, which should be everything you need to know to read and write BMP files on disk.
http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html
Bludd
04-11-2005, 09:13 AM
The wotsit link I provided also has info on the format. http://forums.3drealms.com/ubbthreads/images/graemlins/love.gif
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.