View Full Version : bmp files

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 );
int readBMPFile( string fname );

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

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

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