这是我的代码:
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
Paint paint = new Paint();
paint.setAntiAlias(true);
Path path=new Path();
path.moveTo(150, 10);
path.lineTo(200, 40);
path.lineTo(200, 120);
path.lineTo(160, 150);
path.lineTo(100, 150);
path.lineTo(60, 120);
path.lineTo(60, 40);
path.lineTo(100, 10);
path.close();
canvas.drawPath(path, paint);
canvas.drawBitmap(bitmap1, 0, 0, null)
这是我的截图链接
http://postimg.org/image/kfv7rfqo1/23108b08/
我想按照我的尝试实现右图像形状的左图像,但它会在屏幕截图中显示结果。