Qbasicnews.com

Full Version: Loading different picture formats
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
All I know how to load is bmp. I would like to know how I can load some other ones, maybe even png. Thanks! :wink:
Easiest to accomplish by using a library, such as SDL with SDL_image, or devIL
I'm not completely sure myself, but I can tag along and learn too, right? I think some include files let you use other things, but I never got them to work. Or, you could create your own format with 1's and 0's...
ill try out sdl.
j2krei, if i figure it out, ill make a post of it. the thing is, i doubt i will. but i will definately try.
Quote:All I know how to load is bmp. I would like to know how I can load some other ones, maybe even png. Thanks! :wink:

If you write your own loader here are many descriptions of picture fileformats.
http://www.wotsit.org/search.asp?s=graphics

The PNG site.
http://www.wotsit.org/search.asp?page=7&s=graphics

Joshy