• Advertisement

Archived

This topic is now archived and is closed to further replies.

Code Post: Loading BMP/JPEG/TGA

This topic is 5829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement