Dzień dobry,
Zwracam się z pytaniem dotyczącym bitmapy 16bpp. Od razu przejdźmy do rzeczy:
16bpp bitmapa zawiera 5bitów na każdy kolor czyli 15 na wszystkie, pierwszy (najbardziej znaczący) bit jest nieważny. A więc dlaczego wszędzie jest napisane, że można zapisać w niej 2^16 a nie 2^15 kolorów ?
the bitmap has a maximum of 2^16 colors. if the compression field of the bitmap file is set to bi_rgb, the palette field does not contain any entries. each word in the bitmap array represents a single pixel. the relative intensities of red, green, and blue are represented with 5 bits for each color component. the value for blue is in the least significant 5 bits, followed by 5 bits each for green and red, respectively. the most significant bit is not used.