PDA

View Full Version : bmp files



dlm23410
01-31-2001, 05:03 PM
I am trying to read pixels from a .bmp file, and the blasted book I have gives two (both not working) syntax versions of a read utility.

int readBmpFile( char * fname );
and
int readBMPFile( string fname );

they both compile on visual c++ but neither of them will link properly, any assistance would be great!

mango
01-31-2001, 08:13 PM
readBmpFile is not a OpenGL/glu or glut function. You must link to the library that has it.

rIO
01-31-2001, 11:49 PM
Try using

AUX_RGBImageRec* auxDIBImageLoad(char* Filename)

It's a really easy way for handling BMPs.
Just for knowledge sake, I suggest to find infos also on DIBs and ResourceFunctions..


rIO http://www.spinningkids.org/umine