Switch
###简单介绍
使用Xfermode中的DST_OUT模式,实现两张图片相交部分的透明化,完成掉美女衣服的效果。
具体代码:
public class MainActivity extends ActionBarActivity implements View.OnTouchListener {
private ImageView top;
private Paint mPaint;
private Canvas mCanvas;
private Bitmap blank;
private Bitmap topBitmap;
private Bitmap buttomBitmap;
private Path mPath;
private ImageView buttom;
@Override
pr
2021-07-02 11:03:19
133KB
Java
1