Add some sanity checks according to bmp specification.
Read color table and index data within the same scope and
then simply extend the color palette.
This particular implementation has one limitation: not all 4/1 bit images
can be imported as it requires bit unpacking (size dimensions must be
a multiple of 8 for 1-bit and 2 (even) for 4-bit images).
(cherry picked from commit
|
||
---|---|---|
.. | ||
config.py | ||
image_loader_bmp.cpp | ||
image_loader_bmp.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |