Re: draw lines with XOR operation to background [message #6773] |
Wed, 14 August 1996 00:00 |
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  |
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.
|
|
|