如题
代码如下:
float scW, scH;
//.....
//.....
Path path=new Path();
path.moveTo(0, 0);
path.lineTo(scW,0);
path.lineTo(0,scW);
path.close();
ShapeDrawable mDrawableShape = new ShapeDrawable(new PathShape(path,scW,scH ));
//....
//....
// draw path
canvas.drawPath(path, paint);
// draw shader
mDrawableShape.draw(canvas);
发现画出来的图像的外框(path)和纹理(shader)之间有一到两个像素的透明区域...这个怎么回事呢?
图片如下:
bow~~
------解决方案--------------------
还真没玩过这个