paint 中的方法

来源:互联网 发布:淘宝 手办时光机 编辑:程序博客网 时间:2024/05/22 02:12

setColorFilter(ColorFilter filter):设置颜色过滤。这个就比较麻烦了,一般是传入ColorMatrixColorFilter、LightingColorFilter和PorterDuffColorFilter这三个类的子类。

参考 :http://blog.csdn.net/abcdef314159/article/details/51751331

setDither(boolean dither):设置防抖动。就说让颜色的变化更自然。

setFakeBoldText (boolean fakeBoldText):设置文本仿粗体。

setFilterBitmap(boolean filter):如果该项设置为true,则图像在动画进行中会滤掉对Bitmap图像的优化操作,加快显示速度,本设置项依赖于dither和xfermode的设置。

setPathEffect(PathEffect effect):设置路径轨迹的效果。

setShader(Shader shader):设置或者清空shade对象。
参考 :http://blog.csdn.net/iispring/article/details/50500106

setStrokeJoin(Paint.Join join):设置接合处的形态。可选参数:BEVEL,MITER,ROUND。
setStrokeCap(Paint.Cap cap):设置画笔的笔触风格。可选参数Paint.Cap下的ROUND、SQUARE、BUTT 。
setStrokeMiter(float miter ):设置笔画的倾斜度。
参考 :http://blog.csdn.net/abcdef314159/article/details/51720686

0 0