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 

fillrect transparancy and screen as image

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



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Sun Mar 18, 2007 12:00 am    Post subject: fillrect transparancy and screen as image Reply with quote

One thing that really disappoints me about luaplayer is drawing transparancy. When I do fillrect with a color that has the a(lpha) set to 125 it just blits an opaque rectangle, although I want a 50% transparant rectangle. One solution is using a 50% transparant png image. But this is of course a waste of memory and you need a seperate image for every transparancy value and color. Why doesn't this work? Am I doing something wrong?

Also, it was promised that you could handle the screen image as any other image since v0.20. So it should be possible to blit what's on the screen to another image using

OtherImg:blit(0,0,screen)

When I do this, Only the results of all print, screen:print and screen:fontPrint functioms are blitted to OtherImg. Anyone knows how to do do any of these properly?
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
Altair



Joined: 20 May 2006
Posts: 76
Location: The Netherlands

PostPosted: Mon Mar 19, 2007 3:57 am    Post subject: Reply with quote

yeah i would like to be able to do a transparant fillrect. I have the same problem. I think it's just not possible.

Don't know about the other question. I still use 0.16
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Thu Mar 22, 2007 2:38 am    Post subject: Reply with quote

If you want to do a fully transparant fillrect; you can do that with image:fillRect(0,0,100,200). The 100x200 area will become fully transparant (erased). Pity is that you can't do this for like 50% transparancy
_________________
Behold! The Underminer got hold of a PSP
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