Re: Embedding Graphics.

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 30 Mar 1998, Don Scott wrote:

> I want tamper-proof graphics for my programs (i.e.: Someone could change a
> bmp or gif file that is just hanging around in the executables directory to
> whatever they want....) What is the best way to embed or keep graphics from
> being changed by users? I would like to use gifs in my programs due to the
> size of the files. I am currently using Michael Bolin's GIF loader to load
> graphics into my program. Let me  know what the best way to mask or embed
> my graphics might be. Please include any source that might be helpful if it
> is handy!

I usually combine the images into a single data file so people can't load
and change them.  When that isn't desireable, I sometimes remap the
palette of the images to something hideous, and store the real palette in
the program.  Then when they try and load the images they get garbage on
their screen. (I did this for OidZone)

The easiest thing to do is just change the extension from .GIF to .SMQ or
something (adjusting the picture loader if necessary to handle
the new extension) so people won't think to try loading it.  Many graphics
programs won't try and load a .SMQ file even though it's really a GIF in
disguise.

2 cents.

Michael Packard
Lord Generic Productions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu