| View previous topic :: View next topic |
| Author |
Message |
Squall333
Joined: 28 Apr 2005 Posts: 91
|
Posted: Thu Jul 07, 2005 7:29 am Post subject: Converting images for dev |
|
|
| How do you convert image files to whatever those numbers are in the bitmap.c file |
|
| Back to top |
|
 |
wulf
Joined: 13 Apr 2005 Posts: 81
|
Posted: Thu Jul 07, 2005 10:05 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|