Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!sun-barr!newstop!sun!jasonf From: jasonf@cetemp.Eng.Sun.COM (Jason Freund) Newsgroups: comp.sys.amiga.tech Subject: Flipping a brush horizontally Message-ID: <138441@sun.Eng.Sun.COM> Date: 5 Jul 90 23:48:20 GMT Sender: news@sun.Eng.Sun.COM Distribution: comp.sys.amiga.tech Organization: Sun Microsystems, Mt. View, Ca. Lines: 17 I need source code (or at least an algorithm) to flip a dpaint brush horizontally. Flipping a brush vertically is easy, but to flip it horz. requires bit manipulations (I think) Is the best way to do it : go across each row of image backwards from right to left -- pushing each bit on a stack and then popping it off into the new (reversed) image? Detailed descriptions or source code welcomed. Specifically, I want to reverse a brush in 320 X 200 EHB (6 bit plane) mode (I know that any paint program does this, but I want to be able to do it inside of a program) Thanks Jason Freund jasonf@cetemp.Corp.sun.com