2012-11-04 104 views

回答

1

是的......有。

但我想你是问如何做到这一点。

在这种情况下,你需要使用display.captureBounds()

示例复制并粘贴从手动得到一个全屏幕图像的右下角四分之一。

-- Set up a bounds table for capturing the bottom-right quadrant of the screen. 
local screenBounds = 
{ 
    xMin = display.contentWidth/2, 
    xMax = display.contentWidth, 
    yMin = display.contentHeight/2, 
    yMax = display.contentHeight, 
} 

-- Capture the bounds of the screen. 
local myCaptureImage = display.captureBounds(screenBounds) 
+0

谢谢,我可以切片使用一些天使切片。例如,我正在寻找使用蒙版给我切片图像的方式。但是,无论如何,我会尝试。 –