home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!mars.caps.maine.edu!maine.maine.edu!michael
- Subject: Re: GXcopy and GXxor
- Organization: University of Maine System
- Newsgroups: comp.windows.x
- References: <xia.711911424@odin> <MICHAEL.920724095149@maine.maine.EDU>
- <81@hallofjustice.UUCP>
- Message-ID: <MICHAEL.920726210754@maine.maine.EDU>
- From: michael@maine.maine.edu (Michael Johnson)
- To: NETNEWS@MAINE
- Date: Sun, 26 Jul 92 21:07:54 EDT
- Lines: 29
-
- In article <81@hallofjustice.UUCP> sram@lccinc.UUCP (Siddharth Ram) writes:
- >In article <MICHAEL.920724095149@maine.maine.EDU>, michael@maine.maine.edu
- >(Michael Johnson) writes:
- >> In article <xia.711911424@odin> xia@molbio.ethz.ch (Xia Tai-he) writes:
- >> >However, the lines drawn with the second GC don't have
- >> >the color I have set, whose colors differ depending on the
- >> >objects alreay existing on the screen. Could you give
- >>
- >> There's not really much you can do about it. When you XOR the pixels, the
- >> resulting pixel value is going to yield whatever color that pixel maps to.
- >
- >you can do something about it, provided you are willing to
- >use up an overlay plane, or install you own colormap. then you
- >would have control over all the colorcells.
-
- This assumes that you have a R/W colormap in the server. It is also not too
- friendly when there is only one colormap to be shared by all windows. It may
- give the rubber-banding color you want, but it will cause all other colors on
- the display to be messed up.
-
- In the general case, there really is not much you can do about it. The nature
- of the XOR operation and mapping between pixels and RGB entries makes this so.
-
- My earlier suggestion (use the value -1 cast to Pixel for your rubber-banding)
- will yield the most consistent results. It works for me, and appears to be what
- the Motif window manager uses as well.
-
- Michael Johnson, VM Systems Group michael@maine.maine.edu
- "I will choose the path that's clear. I will choose Free Will." -- Neil Peart
-