🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Inverting Image data?

#7667
From: Colin Fox
Date: Sat, 22 Dec 1990 09:49
23 lines
1235 bytes
> taran@Neon.Stanford.EDU writes:
> 
> Msg-ID: <1990Dec19.184510.23035@Neon.Stanford.EDU>
> Posted: 19 Dec 90 18:45:10 GMT
> 
> Org.  : Computer Science Department, Stanford University
> Person: Lee Taran
> 
> Question about Image structs in Intuition gadgets:
> 
> If you have a one bit plane image data, and you are displaying it in
> a one bit-plane screen, there seems to be no way to get the image to
> appear reversed, ie, to use color 0 where image is 1 and color 1 where
> image is zero without inverting the image or swapping the colors.
> Is that correct or am I missing something?
> 
> ---Lee
> (taran@neon.stanford.edu)

All you have to do is 1) SetDrMd(rastport,RP_COMPLEMENT) (XOR), and then
RectFill() over your image. That will invert it (0<->1).

   --- Colin ---
Technical Details
Message-ID: <4216@mindlink.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!van-bc!rsoft!mindlink!a447

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!van-bc!rsoft!mindlink!a447
From: a447@mindlink.UUCP (Colin Fox)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Inverting Image data?
Message-ID: <4216@mindlink.UUCP>
Date: 22 Dec 90 09:49:54 GMT
Organization: MIND LINK! - British Columbia, Canada
Lines: 23