10 bitmap.allocPixels(imageInfo);
14 auto pack4444 = [](
unsigned a,
unsigned r,
unsigned g,
unsigned b) -> uint16_t {
15 return (
a << 0) | (
b << 4) | (g << 8) | (r << 12);
17 uint16_t red4444[] = { pack4444(0xF, 0xF, 0x0, 0x0), pack4444(0xF, 0xb, 0x0, 0x0),
18 pack4444(0xF, 0x7, 0x0, 0x0), pack4444(0xF, 0x3, 0x0, 0x0) };
19 uint16_t blue4444[] = { pack4444(0xF, 0x0, 0x0, 0xF), pack4444(0xF, 0x0, 0x0, 0xb),
20 pack4444(0xF, 0x0, 0x0, 0x7), pack4444(0xF, 0x0, 0x0, 0x3) };
22 if (
bitmap.writePixels(redPixmap, 0, 0)) {
26 if (
bitmap.writePixels(bluePixmap, 0, 0)) {