mPaint.setAlpha为什么调用两次
mPaint.setAlpha(alpha);
mCanvas.drawRect(mIconRect,mPaint);
mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));
mPaint.setAlpha(255);
mCanvas.drawBitmap(mIconBitmap,null,mIconRect,mPaint);
mPaint.setAlpha(alpha);
mCanvas.drawRect(mIconRect,mPaint);
mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));
mPaint.setAlpha(255);
mCanvas.drawBitmap(mIconBitmap,null,mIconRect,mPaint);
2017-03-06
举报