lufy's legend

标题: 分割图片 [打印本页]

作者: mayiyezongheng    时间: 2017-9-28 18:31
标题: 分割图片
老大,请问如何把一个序列帧的图片分割开,变成多个bitmapData放到一个数组里面,要使用哪个图片就直接到数组里面获取
作者: lufy    时间: 2017-9-28 20:41
等分可以用LGlobal.divideCoordinate
http://lufylegend.com/api/zh_CN/ ... od_divideCoordinate
不等分就需要自己用坐标分割了,bitmapData构造器有详细的参数解释
http://lufylegend.com/api/zh_CN/out/classes/LBitmapData.html

序列帧动画的话,直接用LAnimationTimeline
http://lufylegend.com/api/zh_CN/ ... mationTimeline.html
作者: mayiyezongheng    时间: 2017-9-29 09:11
lufy 发表于 2017-9-28 20:41
等分可以用LGlobal.divideCoordinate
http://lufylegend.com/api/zh_CN/out/classes/LGlobal.html#method_d ...

好的。谢谢老大




欢迎光临 lufy's legend (http://lufylegend.com/forum/) Powered by Discuz! X2.5