Thread: hi... err., how do I hide my BMPs so that people won't be able to view it?

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    142

    hi... err., how do I hide my BMPs so that people won't be able to view it?

    like removing the header files right? but how? thanks!

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    You could split the *.bmp into 2 seperate files then combine them at runtime (of course, deleting the combined file when the program ends).

    Read file header data into a FILEHEADER struct and read the remaining pixel data into another object. Write the FILEHEADER to file one, and all the pixel data to file two. During your game's initiliazation read the data in from both files and then write it combined to a temporary *.bmp file. During your game's clean up routine delete the temporary *.bmp.

  3. #3
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Oops! Forgot to mention the BITMAPINFOHEADER. You could either load write this struct at the end of your BITMAPFILEHEADER file or have it split into 3 files.

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    ...or simply rename it to something like FILENAME.PIC, instead of FILENAME.BMP. This will stop the real noobs at least ...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    I believe the proper extension is .faq.

    Seriously, go with jdinger's plan, it's probably the simplest and easiest to implement. Otherwise you could go with a slightly custom file format but that's more work.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    you could add something like "123456789asdfghjkl" at the top of the file and take it out a runtime.

  7. #7
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214
    just give it a .DAT extension.
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  8. #8
    bobish
    Guest
    Windows does have a function called LoadBitmap() which makes the bitmaps part of the exe you could look into that. People still can press print screen in you are using BMP formated bitmaps so you would want to try some other format.

  9. #9
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    Ba!

    Windows is evil.
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  10. #10
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    or you could do the technique that never fails

    save the file in c:\windows\system with the extension being .ocx and some freaky sysfile name - like bgmsvxd32.ocx, use directory routines to get the file during exec

    nobody ususally goes in that part of the woods
    -

  11. #11
    Bobish
    Guest
    accept that

    1. People can look through recenlty installed files and find it also some install programs say which files are being installed and where.

    2. If people loose the unistall program then the files will still remain there when they unistall the program.

    3. There is something called a copy right which works better then any of those techniques.

    4. Why would anyone want to steal your art anyway, thousands of games around the world have their art easy to "borrow" and they don't act all parinod.

    5. It doesn't matter if you can stop the noobs if one person is able to steal your grafics they can just put it up on the web along with instructons on how to steal them. By making the grafics harder to steal people will just wan't to steal them more because they concider it a chalange

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    i think hes more worried about ppl editing his art, so in the game, they will look different.

  13. #13
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by Flikm
    i think hes more worried about ppl editing his art, so in the game, they will look different.
    That's understandable. I've heard of a couple of indy game developers (read: garage) that posted their games on their geocities/aol/whatever web site only to have some one change the graphics and re-release it as theirs. Both were put out as freeware, so it came down to more of a pride thing.

  14. #14
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    There is no real way to keep you graphics (or anything else) from being changed.
    The best way to hide your images is to write them in as a resource when you compile your program. You could also place them into a DLL file and retrieve them as needed. The latter also makes it a little easier to make changes and updates.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  15. #15
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Nor
    The best way to hide your images is to write them in as a resource when you compile your program. You could also place them into a DLL file and retrieve them as needed. The latter also makes it a little easier to make changes and updates.
    ...or make your own graphics file format... I did .
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  2. February 1, 2019...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 98
    Last Post: 08-03-2002, 07:24 AM
  3. the us constitution
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 121
    Last Post: 05-28-2002, 04:22 AM
  4. Language
    By nvoigt in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 04-29-2002, 02:28 PM
  5. Religious Bull****
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 10-23-2001, 07:14 AM