forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

crypted images

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
fafenstein



Joined: 12 Dec 2005
Posts: 10

PostPosted: Thu Jan 19, 2006 10:32 pm    Post subject: crypted images Reply with quote

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
View user's profile Send private message
Ferrero



Joined: 19 Dec 2005
Posts: 15

PostPosted: Thu Jan 19, 2006 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fafenstein



Joined: 12 Dec 2005
Posts: 10

PostPosted: Thu Jan 19, 2006 11:18 pm    Post subject: Reply with quote

wahou thx guyz !!
I will try it later but thx a lot !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group