Code Post: Loading BMP/JPEG/TGA

Started by
-1 comments, last by CGameProgrammer 22 years, 2 months ago
I wrote a Picture::Load() function to load bitmaps, JPEGs, or TGA images, converting them to a RGB color array, and in the spirit of flipcode's Code of the Day decided to post it here. It's commented and written to be fairly easily integrated into anyone's application. You will need the JPEG library files. Then you can get the code from LoadPicture.txt, a text file you can view in your web browser. Please reply with any comments or difficulties getting it to work. It's not as simple a matter as including the file into your project -- you'd have to modify it slightly, as is explained in the text. It's good for learning though. ~CGameProgrammer( ); [edited by - CGameProgrammer on April 23, 2002 10:31:47 PM]
~CGameProgrammer( );Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.

This topic is closed to new replies.

Advertisement