[LayaAir 2.0]从大图里边截取一部分显示,为啥显示不出来?
let imgBig:Laya.Image=new Laya.Image();
imgBig.skin="big.jpg";
let imgCut:Laya.Image=new Laya.Image();
let texture:Laya.Texture=Laya.Texture.create(imgBig,0,0,100,100);
imgCut.texture=texture;
Laya.stage.addChild(imgCut);
imgBig.skin="big.jpg";
let imgCut:Laya.Image=new Laya.Image();
let texture:Laya.Texture=Laya.Texture.create(imgBig,0,0,100,100);
imgCut.texture=texture;
Laya.stage.addChild(imgCut);
没有找到相关结果
已邀请:
要回复问题请先登录
0 个回复