]> granicus.if.org Git - imagemagick/commit
Fix misaligned bits when writing .rfg
authorDavid Lechner <david@lechnology.com>
Sat, 23 Jul 2016 02:20:30 +0000 (21:20 -0500)
committerdirk <dirk@git.imagemagick.org>
Sat, 23 Jul 2016 11:21:52 +0000 (13:21 +0200)
commit7cbd11037d7fca2552014b60aef66c40e74a899d
treef846339f504c79ee5c565e39d3602d727300af30
parent5a9b26e5bfa6dc834b2d3eb0729123c40479de5c
Fix misaligned bits when writing .rfg

When writing LEGO MINDSTORMS EV3 .rfg file, if the image is not a
multiple of 8 pixels wide, the pixels in the last byte are not aligned
correctly. The pixels need to be shifted the number of bits that are
not used in the last byte.
coders/rgf.c