Paint
还不会飞的鸟
这个作者很懒,什么都没留下…
展开
-
Paint画笔高级应用
1.Paint常用方法// mPaint.setColor(Color.RED);// 设置颜色// mPaint.setARGB(255, 255, 255, 0); // 设置 Paint对象颜色,范围为0~255// mPaint.setAlpha(200); // 设置alpha不透明度,范围为0~255// mPaint....原创 2019-05-19 19:04:26 · 157 阅读 · 0 评论 -
图层混合
//1.ComposeShader //2.画笔Paint.setXfermode() //3.PorterDuffColorFilter //禁止硬件加速 setLayerType(View.LAYER_TYPE_SOFTWARE, null); setBackgroundColor(Color.GRA...原创 2019-05-19 19:32:26 · 144 阅读 · 0 评论 -
Paint 滤镜效果
LightingColorFliter /** * R' = R * mul.R / 0xff + add.R * G' = G * mul.G / 0xff + add.G * B' = B * mul.B / 0xff + add.B */ //红色去除掉// Ligh...原创 2019-05-19 19:59:34 · 154 阅读 · 0 评论