How hard would it be to make a custom file format?
Yeh, how hard would it be to make a custom file format for a picture file? What would be some info that I would have to include? Any ideas welcome! Thanks.
Not very. It really depends on how felxible you want your format to be. If you want simplicity, go for a simple 24 bit file, and store height, width, followed by the raw data(a single 32 bit value per pixel, ignore one byte). You could then extend it, to NOT store that unused byte, to save height*width bytes in the file.
If you wanted to a bit more flexible, you would store the bpp in the file, perhaps the size for data checks, etc.
Z.
If you wanted to a bit more flexible, you would store the bpp in the file, perhaps the size for data checks, etc.
Z.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement