It works well for ARGB_8888 and uint32_t color, but for RGB_565 and
ARGB_4444 and uint16_t it doesn't work. Buffer everytime contains
expected values, but bitmap pixels doesn't. In RGB_565 bitmap doesn't
contain RED component and in ARGB_4444 pixels are set to 0.
There are some log records for RGB_565:
08-10 05:59:55.192: DEBUG/Bitmap0(604): ff00ffff
08-10 05:59:55.192: DEBUG/buffer0(604): ff00ffff
08-10 05:59:55.212: INFO/libbitmapDrawing(604): Color in array: ffff
08-10 05:59:55.221: DEBUG/Bitmap1(604): ff00ffff
08-10 05:59:55.221: DEBUG/buffer1(604): ffff
08-10 05:59:55.262: DEBUG/Bitmap2(604): ff00ffff
08-10 05:59:55.262: DEBUG/buffer2(604): ffff
Bitmap0 and buffer0 are values before native method call, Bitmap1/
buffer1 after native method call and Bitmap2/buffer2 after
bitmap.setPixels(...)
Why Bitmap color is represented by 32 bit integer value, when it has
been defined as RGB_565?