🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4223

Flipping a brush horizontally

#4223
From: Jason Freund
Date: Thu, 05 Jul 1990 23:48
17 lines
1100 bytes
	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
Technical Details
Message-ID: <138441@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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