Code picture files

Started by
0 comments, last by Zeblar Nagrim 23 years, 1 month ago
How to hide bmp files from users? Eiter you include all pictures as resource files in the EXE file. But then you get a very big program. Or you make your own picture file. But then you must convert it to a bmp again when you load the picture to a texture in DX8. That makes your program slow. I wonder if somebody can help me to solve this problem? Zeblar Nagrim, Lord of Chaos
Advertisement
Easy Method #1 : Rename the extension to something else. This will fool a lot of people.

Easy Method #2 : Read/Write them backwards. You probably need your own BMP loading routines for this.

The next method I would consider if neither of those are enough for you, would be to use some sort of zipped-resource file. Of course, you don''t call it a .zip, you call it something else. But it adds an extra layer of information hiding.

Otherwise, you''re gonna either have to use some sort of encryption (over the top IMHO) or invent your own file format (not too tough).

This topic is closed to new replies.

Advertisement