convert bmp/tga to .h
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?
.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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement