Mask & Capture Image?

3 replies [Last post]
jmp909
User offline. Last seen 10 weeks 5 days ago. Offline
Joined: 14 May 2010

Hi,

i saw Unicorn Labs had some apps that let you get a photo from the web, mask off your face area and add graphics to this. I am guessing that they didn't do these apps with corona?

It would be good to be able to do what I suggested above

* load image
* add mask
* capture masked image (with alpha transparecy) as bitmap in memory

it would be also good to be able to save a PNG that could be loaded later (with transparency), but mainly being able to have it in memory is my main feature request

this video demonstrates that specific functionality they are using
http://www.youtube.com/watch?v=MGApdKwbjG4#t=0m30s

It would also be good just to be able to capture a rectangular portion of the screen (or display object). This could be achieved with the functionality above anyway.

Presumably this could be used also for drawing images dynamically in code and caching as a bitmap texture?

thanks
J

Replies

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 6 weeks 5 days ago. Offline
Alumni
Joined: 22 Jun 2009

J

Yes, we are looking into the above features you mentioned and we are going to share a roadmap as soon as we can

Carlos

jmp909
User offline. Last seen 10 weeks 5 days ago. Offline
Joined: 14 May 2010

hi,

It would also be useful to be able to have a copyRect/copyPixels type function on an object.. my specific example for this would be to slice an image/sprite into say 4x4 (16 equal sized chunks/sprites) and then "explode" those chunks outwards in separate directions. - Although to be more effective we'd want some blur & blitting techniques available on this too! ;)

thanks
j

jmp909
User offline. Last seen 10 weeks 5 days ago. Offline
Joined: 14 May 2010

ideally we would have something like:
myDisplayGroup:setMask(myMaskDisplayGroup);

or preferably...
myDisplayGroup.mask = myMaskDisplayGroup

implementing this?
http://www.opengl.org/wiki/Stencil_Mask

thanks
j

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.