Mask & Capture Image?

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

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

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

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

views:2252 update:2011/9/19 9:18:26
corona forums © 2003-2011