Android学习札记18:Drawable中的setDither()方法
来源:互联网 发布:微信报码编码软件 编辑:程序博客网 时间:2024/06/05 17:13
4.0.4 r1.2中android.graphics.drawable.Drawable源代码
Set to true to have the drawable dither its colors when drawn to a device with fewer than 8-bits per color component. This can improve the look on those devices, but can also slow down the drawing a little.public void setDither(boolean dither) {}
4.0.4 r1.2中android.graphics.drawable.BitmapDrawable源代码
@Overridepublic void setDither(boolean dither) {mBitmapState.mPaint.setDither(dither);invalidateSelf();}
4.0.4 r1.2中android.graphics.Paint源代码
Helper for setFlags(), setting or clearing the DITHER_FLAG bit Dithering affects how colors that are higher precision than the device are down-sampled. No dithering is generally faster, but higher precision colors are just truncated down (e.g. 8888 -> 565). Dithering tries to distribute the error inherent in this process, to reduce the visual artifacts.Parameters:dither true to set the dithering bit in flags, false to clear itpublic native void setDither(boolean dither);
最后调用本地类库进行处理。
- Android学习札记18:Drawable中的setDither()方法
- Android学习札记17:ImageView中的setImageBitmap()方法
- android绘图Paint.setAntiAlias()和Paint.setDither()方法的作用
- android绘图Paint.setAntiAlias()和Paint.setDither()方法的作用
- android绘图Paint.setAntiAlias()和Paint.setDither()方法的作用
- android绘图Paint.setAntiAlias()和Paint.setDither()方法的作用
- android中绘图Paint.setAntiAlias()和Paint.setDither()方法的作用
- Android 底层学习札记
- Android 学习札记
- 【Android学习札记】数据类型
- Android学习札记35:onSaveInstanceState (Bundle outState)方法
- Android学习札记36:一个关于onSaveInstanceState ()方法的例子
- Android中的Drawable资源
- Android中的Drawable资源
- Android中的Drawable资源
- Android 中的Drawable资源
- Android中的Drawable资源
- Android中的Drawable资源
- STARTUPINFO结构体
- 【高质量代码实践】【链表】链表的建立,查找,删除,插入和输出
- linux 信号处理
- 算法导论第二章课后习题代码实现
- Activity 变成窗口
- Android学习札记18:Drawable中的setDither()方法
- Opengl编程指南第二章:状态管理、几何绘图
- JDK中的URLConnection参数详解(2012.06.29)
- PHP缓存技术实现
- POCO::XML(二) 简单读XML文档
- 在配置最新Androi adt20.0.0 遇到的一些错
- 一个提交时候的错误, 500错, 错误信息是 para.do 没有action
- javascript onclick事件传参
- JAVA.SWT/JFace: SWT基本组件之列表框(List)