Archived

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

soreno

convert bmp/tga to .h

Recommended Posts

i had this cool program that could convert a bmp/tga file to a .h file that is easy to use as a texture in my program. But I lost it.. does anyone know what i''m talking about? where can I download it?

Share this post


Link to post
Share on other sites
.h file? Isn''t that a header file? How do you use it as an image format?

Besides, I highly suggest you learn how to make your own classes to parse info from Bitmaps and Targa files. It is really easy to do once you learn how to parse a binary file. Image files are mainly set up like this:

Header info <- describes the image
Data <- actual pixel data

Of course this varies between file formats, so you will need to do a search for "bitmap file format" or "targa file format" and learn how the header is setup.

Share this post


Link to post
Share on other sites
it''s not because i''m lazy.. (or maybe it is.)
but it is an easy way to include the image in my exe file (a screensaver), writing it myself seems stupid when someone has already done the job.

Share this post


Link to post
Share on other sites