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:1520 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
相关文章
Changes at OpenFeint
listen for touch "began" on one object and listen for touch "ended" on another.
Required Icons
Opening SQLite database that is password protected
Wanted Testers
Set Box2D collision filter/groupIndex after physics body added
issue with password in newTextField
Lite to Full version upsell
Event when removed from stage
problem with new build 484
listen for touch "began" on one object and listen for touch "ended" on another.
Required Icons
Opening SQLite database that is password protected
Wanted Testers
Set Box2D collision filter/groupIndex after physics body added
issue with password in newTextField
Lite to Full version upsell
Event when removed from stage
problem with new build 484
corona forums © 2003-2011