Converting images for dev

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Squall333
Posts: 91
Joined: Thu Apr 28, 2005 5:32 am

Converting images for dev

Post by Squall333 »

How do you convert image files to whatever those numbers are in the bitmap.c file
wulf
Posts: 81
Joined: Wed Apr 13, 2005 6:56 pm

Post by wulf »

those numbers are the data for the rgb values for the pixels in the image.. they are converted like that so that it makes it easier to use an image in a c program..
you can use the Gimp to convert them.. but you should look at some source code (hello world is an example) to see how they are used, because I think the gimp has a couple of ways to do it.. you can also use bmp2c.. I think it's somewhere on this site, but I'm not sure where..

later

Wulf
Post Reply