🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.amiga.tech
1 messages
1 total messages Started by Colin Fox Sat, 22 Dec 1990 09:49
Re: Inverting Image data?
#7667
Author: 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 ---
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads