有什麼辦法如何使用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. 圖像分割技術
謝謝,我可以切片使用一些天使切片。例如,我正在尋找使用蒙版給我切片圖像的方式。但是,無論如何,我會嘗試。 –