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

Home » Public Forums » archive » [Q}:Rubberbanding in IDL
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: [Q}:Rubberbanding in IDL [message #3888 is a reply to message #3805] Sat, 01 April 1995 00:00 Go to previous messageGo to previous message
rouse is currently offline  rouse
Messages: 17
Registered: July 1994
Junior Member
In article <D6B64n.CJ0@hpl.hp.com>, peter@hpl.hp.com (Peter Webb) writes:
|>Newsgroups: comp.lang.idl-pvwave
|>Path: lanews.la.asu.edu!news.asu.edu!asuvax!ncar!newshost.lanl.gov !ferrari.mst6.lanl.gov!nntp-server.caltech.edu!netline-fddi. jpl.nasa.gov!news.byu.edu!news.mtholyoke.edu!uhog.mit.edu!ne ws.mathworks.com!news.duke.edu!agate!howland.reston.ans.net! swrinde!sdd.hp.com!hplabs!hplntx!peter
|>From: peter@hpl.hp.com (Peter Webb)
|>Subject: Re: [Q}:Rubberbanding in IDL
|>Sender: news@hpl.hp.com (HPLabs Usenet Login)
|>Message-ID: <D6B64n.CJ0@hpl.hp.com>
|>Date: Fri, 31 Mar 95 07:12:23 MST
|>References: <3kjio3$fjn@nms.telepost.no> <3kjkos$qmk@nms.telepost.no> <3ldd65INNksq@lanews.la.asu.edu>
|>Nntp-Posting-Host: oz.hpl.hp.com
|>Organization: Hewlett-Packard Laboratories, Palo Alto, CA
|>X-Newsreader: TIN [version 1.2 PL2]
|>Lines: 22
|>
|>
|>I'd post my favorite routine, but it's copywrite of my previous employer...
|>
|>A couple of tricks I found useful:
|>
|> Use device, /copy to write the image to a hidden pixmap, then you can
|> clean up the box during resizes by copying it back. This is faster
|> than rewriting the section you just drew a box on, since the x server
|> does it directly. You can drag a box around a 1024^2 image as fast as
|> you please. You also don't have to worry about off-by-one errors when
|> cleaning up, which tend to leave little goobers all over the image
|> (yes, I know, just don't make mistakes in the first place...).

Isn't the same thing accomplished by setting graphics to 6:

device, get_graphics=old, set_graphics=6


|>
|> Using normalized co-ordinates, rather than device co-ordinates, cleans
|> up the code a bunch, especially if you need to calculate back to some
|> physical co-ordinates anyway. The advantage is that the code is
|> independent of image screen size.
|>
|>Email me if you want more details.
|>
|>Peter
|>
|>

- Roger

+----------------------------------------------------------- -+
|Roger B. Rouse + # # # . |
| # . + |
|Arizona State University # + + # |
|Dept. Physics & Astronomy + + + # + |
|Tempe, Az, 85287-1504 + + # |
| . . @ . . |
|rouse@sevens.la.asu.edu # + + |
| + # + + + |
|"The AscII Galaxy found # + + . |
| in the Local Network." + . # |
| . # + # . Rouse|
+----------------------------------------------------------- -+
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL call_external to sprlib ?
Next Topic: Re: [Q] NR_DFPMIN: Roundoff problem in lnsrch..

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

Current Time: Sat Oct 11 06:35:59 PDT 2025

Total time taken to generate the page: 0.24214 seconds