I want to be able to capture the background and then manipulate a piece of that image. For example, take a square of 50 pixels in the middle of the background and then rotate it. I know that I can use captureScreen to get the background into an object and use other display functions to rotate and scale. But how do I cut out only the part of the image that I need?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
display.captureScreen( ) Question
how about using a mask?
Thanks for the suggestion but that's not the effect I'm going for. I want to take a section of the screen, like a circle at some variable coordinates, and turn it into a display object, all the while leaving the screen intact, including the area that was turned into the circle. I then want to move the new display object around the screen, rotating it as it moves.
the output of display.captureScreen( ) is a display object and as such it can be masked
put it in a group and mask the group with a circle at maskX,maskY
then, move and rotate the group
the screen is not affected
views:1518 update:2011/11/10 9:30:09
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Runtime Listener Question
Background work before using In-Apps Purchase
Evo 4G Performance
Another newbie question
Does Lua supports raising custom events?
Chicken or egg?
Rose Bike Bell (iPhone / iPod Touch)
Audio and Device Volume Settings
Bubble Ball Hits #1 Free App on App Store. Just passed the 5 millionth download !!
Side of a rect
Background work before using In-Apps Purchase
Evo 4G Performance
Another newbie question
Does Lua supports raising custom events?
Chicken or egg?
Rose Bike Bell (iPhone / iPod Touch)
Audio and Device Volume Settings
Bubble Ball Hits #1 Free App on App Store. Just passed the 5 millionth download !!
Side of a rect
corona forums © 2003-2011