The source project of this merge request has been removed.
Scale BMP color samples with periodic bit expansion
Bitmaps with color channel depths other than 8 bits do not scale properly, i.e. they decode to inadequate colors. For example the brightest color from a bitmap with 5 bits per channel is not white (#FFFFFF), but a light gray (#F8F8F8).
Scale samples up by periodically repeating the bit pattern of each value to fill up the lower bits instead of padding them with 0.
Vice versa truncate samples that exceed the bit depth of QRgb.
Change-Id: I777519e359932f52e54a33073a1ff297a76f620c
Reviewed-by: Eirik Aavitsland eirik.aavitsland@qt.io
(cherry-picked from commit 1fee7adc)
Edited by Martin Walch