[comp.sys.handhelds] erasing a line

chambersdj@EA.USL.EDU (Darrin Chambers) (07/02/90)

I must have missed it somewhere, but how do I erase a line in graphics
(I use  << PICT NEG LINE PICT NEG >> )
There must be a better way!

-Darrin

chambersdj@EA.USL.EDU (Darrin Chambers) (07/02/90)

(geez, that was fast!)
Yes, I saw the TLINE function.
But I need to erase *ALL* the pixels from (a,b) to (c,d)
(the ones that were off should stay off too!)

Darrin

edp@deland@enet.dec.com (Always mount a scratch monkey.) (07/02/90)

In article <00939102.8C5354E0@EA.USL.EDU>, chambersdj@EA.USL.EDU (Darrin
Chambers) writes...

> I must have missed it somewhere, but how do I erase a line in graphics
> (I use  << PICT NEG LINE PICT NEG >> )

TLINE performs an XOR along a given line segment, turning off pixels that are
on and turning on pixels that are off.


				-- edp (Eric Postpischil)
				"Always mount a scratch monkey."
				edp@jareth.enet.dec.com

rayde@hpcvia.CV.HP.COM (ray_depew) (07/03/90)

How about << DUP2 LINE TLINE >>      ?

The DUP2 savevs a pair of endpoints for TLINE after LINE eats the first pair.


Ray Depew
HP - Inks and other gooey stuff
-------------------------------------------------

chambersdj@EA.USL.EDU (Darrin Chambers) (07/04/90)

Thanks, someone suggested that by email.
(I still think an ELINE function should have been included. I mean 
there are pixel on/off functions...)
-Darrin