Recent

Author Topic: drawing with XOR pen  (Read 3371 times)

Jesus

  • Newbie
  • Posts: 4
drawing with XOR pen
« on: November 28, 2014, 03:46:29 am »
Hi,
The simplest way to draw a line, rectangle or any other geometric figure so that it can be erase with the background restored as it was is to use an XOR pen. My question is how to create such a pen in Lazarus?


Syndrome

  • New Member
  • *
  • Posts: 35
Re: drawing with XOR pen
« Reply #1 on: November 28, 2014, 04:17:52 am »
Canvas.Pen.Color:= clwhite;
Canvas.Pen.Mode:= pmXor;

Jesus

  • Newbie
  • Posts: 4
Re: drawing with XOR pen
« Reply #2 on: November 28, 2014, 04:45:36 am »
Thanks, another problem solved.

 

TinyPortal © 2005-2018