comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: draw lines with XOR operation to background
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: draw lines with XOR operation to background [message #6773] Wed, 14 August 1996 00:00
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
hammerl@ibm01s.RZ.Uni-Augsburg.DE (Claus Hammerl) writes:

> Hello there,

> I want to draw a line into an image and remove this line later.
> I think the
> best way to do so is to draw the line with an XOR exclusive or operation
> on the background . another xor operation would then restore the
> original image. Does anybody know id IDL can do such XOR operation?

Look at the source code for the routine box_cursor. The command

device, get_graphics = old, set_graphics = 6

enables XOR operation, and

device, set_graphics = old

returns to the previous state.

Bill Thompson
Re: draw lines with XOR operation to background [message #6775 is a reply to message #6773] Wed, 14 August 1996 00:00 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
Claus Hammerl wrote:
>
> Hello there,
>
> I want to draw a line into an image and remove this line later.
> I think the
> best way to do so is to draw the line with an XOR exclusive or operation
> on the background . another xor operation would then restore the
> original image. Does anybody know id IDL can do such XOR operation?
>
> thanks
>
> claus Hammerl
>
> hammerl@physik.uni-augsburg.de
>
> anl


device, set_graphics_function = 6 ;GXor
device, set_graphics_function = 3 ;GXcopy

See the manual for additional graphics functions.

--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Getting too many resize events
Next Topic: draw lines with XOR operation to background

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:33:10 PDT 2025

Total time taken to generate the page: 0.00474 seconds