Question about RGB565
Hi, thank you for this fantastic CImg lib! I need to show jpeg image on a 128X128 px OLED screen, and it only support RGB565 16bit uncompressed image (i use LCDGFX driver library). So i'm trying to use your lib to achieve this. I opened image (decoded via jpeglib) and resized it to 128X128. I'm not sure how to know Cimg pixel format used, but if i get pixel info for an 1px RED only image with: unsigned char R = image(0,0), G = image(0,0,0,1), B = image(0,0,2); i get R=254, G=0, B=0 so i assume Cimg handle it in a RGB888 24bit. Is this correct? now, i need to convert it to RGB565 16 bit, but i don't understand if your library support this kind of bit shift.
any suggestions will be very well accepted! Thank you Emanuele