Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!arizona.edu!arizona!amethyst!atmo2.atmo.arizona.edu!leuthold From: leuthold@atmo2.atmo.arizona.edu Newsgroups: comp.sys.amiga.programmer Subject: best way to reverse a bitplane? Message-ID: <1991Apr29.101302.1@atmo2.atmo.arizona.edu> Date: 29 Apr 91 17:13:02 GMT Sender: news@amethyst.math.arizona.edu Organization: University of Arizona, Atmospheric Sciences Lines: 7 What is the best way to reverse a bitplane? A brute force method would be to reverse the bytes and then reverse the bits in each byte. The only way I can think of to reverse the bits in each byte is to mask each bit off then shift it to its new place and add it to the new byte. Is there a better way? Mike Leuthold leuthold@atmo1.atmo.arizona.edu