- 注册时间
- 2014-7-20
- 最后登录
- 2014-11-21
- 阅读权限
- 20
- 积分
- 11
- 精华
- 0
- 帖子
- 3
|
var bgImage = new LSprite();
bgImage.graphics.clear();
bgImage.graphics.beginBitmapFill(_imagedata);
vertices = new Array();
vertices.push(0, 0);
vertices.push(0, _imagedata.height);
vertices.push(_imagedata.width, _imagedata.height);
indices = new Array();
indices.push(0, 1, 2);
uvtData = new Array();
uvtData.push(0, 0);
uvtData.push(0, 1);
uvtData.push(1, 1);
bgImage.graphics.drawTriangles(vertices, indices, uvtData , 2);
不知道为什么只画了个三角边框,没有图像,求高手解答 |
|