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

Home » Public Forums » archive » overplotting lines over images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: overplotting lines over images [message #7497 is a reply to message #7401] Thu, 14 November 1996 00:00 Go to previous messageGo to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Mirko Vukovic wrote:
>
> I want to overplot lines over an image. The way I'd like it is to OR
> it, in the sense that the line is dark over light parts and light over
> dark parts. Thought that I've seen that written or mentioned somewhere,
> but cannot find anything in the manual.
>

You have to change the graphics mode to XOR mode, draw stuff, and
then restore the old graphics mode:

wset, my_window
color = !d.table_size - 1
device, get_graphics = oldg, set_graphics = 6
plots, [x1,x2], [y1,y2], /noclip, /device, color = color
device, set_graphics = oldg

You can later "erase" the line by doing the same commands again.

Hope this helps.
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Building contingency tables?
Next Topic: Writing mpeg from IDL

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

Current Time: Wed Oct 08 15:28:21 PDT 2025

Total time taken to generate the page: 0.00439 seconds