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

Home » Public Forums » archive » Re: How to draw a line on an image?
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: How to draw a line on an image? [message #5665 is a reply to message #5663] Mon, 29 January 1996 00:00 Go to previous messageGo to previous message
offenbrg is currently offline  offenbrg
Messages: 31
Registered: August 1993
Member
yoshida@fermi.bsd.uchicago.edu (Hiro Yoshida) writes:

> Hello IDL experts,

> Is there a handy way to draw lines on an image in IDL?

> I would like to draw some simple graphics such as lines, boxes, and circles
> on an image. (I am not talking about modifying image itself by putting
> white pixels to draw these figures.) I believe that IDL has some commands
> for this type of "overlay" task. Unfortunately, however, I cannot find one
> so far. Any suggestions are welcome.


I believe that the routine you want is "plots" (not "Plot"), which
allows you to draw graphics on a TV window (such as lines, circles, etc).
Also tvcircle and tvbox.

Now, this does change the image as stored in the window. The array stored
in memory will not be changed by this. There isn't really any way to
"overlay" in video memory without altering the contents of the window.

What you *could* do is copy the image into a pixmap window, so you can
recover it unchanged after you've finished with the graphics. The only
other trick I can think of involves using a 24-bit display...

Joel


--
"...And I am unanimous in this" - Mrs. Slocumbe
------------------------------------------------------------ ----------
| Joel D Offenberg | offenbrg@fondue.gsfc.nasa.gov |
| Hughes STX, NASA/GSFC/LASP | I get paid to stare into space. |
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Random # generator?
Next Topic: Re: Problem addressing arrays from C routines running OSF

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

Current Time: Wed Oct 08 17:09:42 PDT 2025

Total time taken to generate the page: 0.00551 seconds