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);


最后调用本地类库进行处理。

更多相关文章

  1. Android内核和驱动篇-Android内核介绍
  2. Android原生和H5交互;Android和H5混合开发;WebView点击H5界面跳转
  3. Unity—Android通讯
  4. Android中使用ViewPage进行广告轮播测试代码
  5. Android常用资源总结
  6. Android的源代码结构
  7. 如何下载android源码与android内核源码
  8. Android(安卓)Interface Definition Language (AIDL) android接
  9. Android消息循环实现原理分析

随机推荐

  1. android:configChanges 属性注意事项 翻
  2. Qt For Android(安卓)数据库操作
  3. Android(安卓)获取Mac地址和IP地址
  4. Android中assets目录和raw目录的区别和使
  5. 【Android】Eclipse svn插件安装说明
  6. android所需开发环境:
  7. WebView使用大全
  8. Linux Android(安卓)反编译
  9. 开始启程,你的第一行
  10. Android(安卓)Studio 安装 Genymotion