Jump to content
  • Advertisement


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

Zeblar Nagrim

Code picture files

This topic is 6479 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
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).

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!