有什么办法如何使用Corona SDK分割图像。例如,我有一个图像100 x 100像素。我需要从这张图片中创建4张图片50 x 50 px。Corona SDK分割图像
0
A
回答
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
如果使用原始图像(假设100×100),其为50x50精灵的spritesheet后,将“分裂”的形象进入4个精灵以后可以用它来显示图像的部分。
请参阅http://developer.coronalabs.com/reference/index/spritenewspritesheet
相关问题
- 1. Corona SDK将图像设置为壁纸?
- 2. 引脚标记图像Corona SDK
- 3. 与类中的图像碰撞corona sdk
- 4. Corona SDK图像在左上角?
- 5. Corona SDK。 Lua:居中图像功能
- 6. 如何在corona sdk中切片图像?
- 7. Corona SDK:图像格式优化/信息?
- 8. 图像分割
- 9. 图像分割
- 10. 如何删除Corona SDK中的图像部分?
- 11. 图像分割(MATLAB)
- 12. Matlab分割图像
- 13. C#中的图像分割(行分割和字符分割)
- 14. Corona sdk + xmpp
- 15. Corona SDK和Evernote
- 16. 在Corona SDK
- 17. Corona SDK和IBOutlets
- 18. Corona SDK addEventListener
- 19. Corona SDK旋转
- 20. LevelHelper和Corona SDK
- 21. Corona SDK onRowTouch gotoScene
- 22. Corona SDK或Appcelerator
- 23. 如何从corona sdk的图库中获取图像?
- 24. 将图像分割成多张图像
- 25. iOS的图像分割
- 26. 分割文档图像
- 27. itk - 3D图像的分割
- 28. 使用ImageJ分割图像
- 29. 使用java分割图像
- 30. 图像分割技术
谢谢,我可以切片使用一些天使切片。例如,我正在寻找使用蒙版给我切片图像的方式。但是,无论如何,我会尝试。 –