0
点赞
收藏
分享

微信扫一扫

取出抖动

彭维盛 2023-06-20 阅读 55


public class MyActivity extends Activity {
  @Override
  public void onAttachedToWindow() {
    super.onAttachedToWindow();
    Window window = getWindow();
    // Eliminates color banding
    window.setFormat(PixelFormat.RGBA_8888);
  }
}

http://stuffthathappens.com/blog/2010/06/04/android-color-banding/

2.
setDither(true)

举报

相关推荐

0 条评论