| View previous topic :: View next topic |
| Author |
Message |
fafenstein
Joined: 12 Dec 2005 Posts: 10
|
Posted: Thu Jan 19, 2006 10:32 pm Post subject: crypted images |
|
|
Hi all,
I want to kwnow if it's possible to "crypt" (i hope it's english) images.
If i want to do a games with nude women (it's an exemple ;b).
You win a level and you can see a picture.
But in lua all pictures are visible in the game directory, so how to do for hide this picture (crypt)....
Thx for answers. |
|
| Back to top |
|
 |
Ferrero
Joined: 19 Dec 2005 Posts: 15
|
Posted: Thu Jan 19, 2006 11:07 pm Post subject: |
|
|
Hi,
I think you can solve your problem like this.
I've developed a class that load and blit PCX image (yep, I'm making some advertisement ;-).
So you can save your nude wom.....image (sorry), in this format with photoshop or paintshop. After, save your palette (PCX are 256 indexed color images), and then make all the colors of the palette black, and save again
So to view your image :
load the black image via the clsPCX class.
modify the palette of the clsPCX (load the saved palette or hard code it)
blit the image to the screen.
So without yout script people can only see black images.
you can found the PCX class here.
I wish this will be help you. _________________ _________________________________________________________
Do you want some LUA Scripts ?
Go here |
|
| Back to top |
|
 |
fafenstein
Joined: 12 Dec 2005 Posts: 10
|
Posted: Thu Jan 19, 2006 11:18 pm Post subject: |
|
|
wahou thx guyz !!
I will try it later but thx a lot !! |
|
| Back to top |
|
 |
|