From: "David Lively" Newsgroups: borland.public.delphi.graphics References: <3b02b68d$1_2@dnews> <3b02bc45$2_1@dnews> <3b02ca8c$1_2@dnews> <3B03861E.585A15FD@biomed.gla.ac.uk> <3b03df2e$1_1@dnews> <3B042BBB.BC6ECC9E@courthouse.com> Subject: Re: Erasing lines without using Xor Date: Fri, 25 May 2001 18:04:34 -0500 Lines: 73 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 206.50.62.204 Message-ID: <3b0ee507$1_2@dnews> X-Trace: dnews 990831879 206.50.62.204 (25 May 2001 16:04:39 -0700) Path: dnews Xref: dnews borland.public.delphi.graphics:39201 If your background isn't complex but you still need control over color you can use: DrawColor := BackgroundColor xor DesiredColor; Then XOR-draw the line using DrawColor as the Pen color. (BackgroundColor xor DrawColor will give DesiredColor). Of course, if the line goes over anything where the background color is different, the line color will shift. - D