开发者

How to create view 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜