Horizontally Flip a One Bit Bitmap Line
Posted
by roygbiv
on Stack Overflow
See other posts from Stack Overflow
or by roygbiv
Published on 2010-05-05T21:28:49Z
Indexed on
2010/05/05
22:38 UTC
Read the original article
Hit count: 212
I'm looking for an algorithm to flip a 1 Bit Bitmap line horizontally. Remember these lines are DWORD aligned!
I'm currently unencoding an RLE stream to an 8 bit-per-pixel buffer, then re-encoding to a 1 bit line, however, I would like to try and keep it all in the 1 bit space in an effort to increase its speed. Profiling indicates this portion of the program to be relatively slow compared to the rest.
Example line (Before Flip):
FF FF FF FF 77 AE F0 00
Example line (After Flip):
F7 5E EF FF FF FF F0 00
© Stack Overflow or respective owner