[osg-submissions] BMP palette file fix

Colin McDonald cjmcdonald at qinetiq.com
Tue Jul 1 09:11:24 PDT 2008


Hi Robert,

There is a problem reading bmp files containing a colour palette,
due to an incorrect scan line length calculation.  Attached is a fix,
and a little bmp file which demonstrates the problem.

Regards

Colin McDonald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: palette.bmp
Type: image/bmp
Size: 1238 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080701/fa4f3dd0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmpPalette.zip
Type: application/zip
Size: 5677 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080701/fa4f3dd0/attachment.zip>


More information about the osg-submissions mailing list