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:1519 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
相关文章
iAd on Games
Witches' Brew HD Available now - Promo Codes
Camera not moving right?
createTileLayer is not working ( at least for me ).
Way to see if an image is above/ontop of another image
Stream online audio
Has anyone had experience using Accelerometer on Android devices
Can't remove Slide-View (Need urgent help)
Multi screen interface
Form on top of form
Witches' Brew HD Available now - Promo Codes
Camera not moving right?
createTileLayer is not working ( at least for me ).
Way to see if an image is above/ontop of another image
Stream online audio
Has anyone had experience using Accelerometer on Android devices
Can't remove Slide-View (Need urgent help)
Multi screen interface
Form on top of form
corona forums © 2003-2011