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.
精彩评论