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.
crypted images
Moderators: Shine, Insert_witty_name
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.
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.
-
- Posts: 10
- Joined: Mon Dec 12, 2005 8:38 pm