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

Home » Public Forums » archive » Deleting and erasing lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Deleting and erasing lines [message #10484] Thu, 11 December 1997 00:00 Go to previous message
Andrew A. Baker is currently offline  Andrew A. Baker
Messages: 2
Registered: December 1997
Junior Member
Hello,

I'm a fairly new user of pv-wave and I'm trying to do something which
I am sure will be very simple to more experienced pv-wave users.

I wish to draw a line on top of an image which follows the cursor as
the mouse is moved and continously updates the line on the screen
(after, of course, an initial point has been chosen). Drawing the
line is easy using PLOTS, but how do I erase it and leave the original
image intact? I don't wish to redraw the entire image, of course, for
speed reasons.

The best method that I know from other programming endeavours is to use
XOR (exclusive-OR), so that the colour drawn depends on the colour
already there and reversal (i.e. erasing the line) is then a trivial
process. I don't need a line of one colour only, so is there a way of
doing non-absolute colours? Or is there a better way?

Thanks in advance for any help.

Andy.

------------------------------------------------------------ ------------
Email: andy.baker@bristol.ac.uk H.H. Wills Physics Laboratory
Tel: +44 (0)117 928 9000 ext 8743 (office) University of Bristol
+44 (0)117 928 8747 (lab/messages) Bristol
Fax: +44 (0)117 925 5624 BS8 1TL
Web: http://teddy.phy.bris.ac.uk/~phaab/ UNITED KINGDOM
------------------------------------------------------------ ------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Placement of Floating widgets
Next Topic: Circles in XOR mode

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

Current Time: Wed Oct 08 17:58:04 PDT 2025

Total time taken to generate the page: 0.00846 seconds