开发者

How to create view cache by RGB565?

开发者 https://www.devze.com 2023-03-17 13:41 出处:网络
android 2.2, the default view cache is ARGB_8888, Ho开发者_开发问答w to create view\'s cache by RGB565?

android 2.2, the default view cache is ARGB_8888, Ho开发者_开发问答w to create view's cache by RGB565? Thanks!


The simplest way is to simply drop the least-significant bits.

Ie. NewR = R >> 3; NewG = G >> 2; NewB = B >> 3;

However, I suppose a more thorough method might include some form of dithering, to minimise banding.

0

精彩评论

暂无评论...
验证码 换一张
取 消