LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Erase a drawing in canvas control

Hello,

 

I have drawed  two lines in a canvas control, I'd like to know if there is a method to erase one of a line but just reserve anothere one?

 

 

David

0 Kudos
Message 1 of 2
(3,223 Views)

Hi David

 

Set the canvas pen attribute to XOR

SetCtrlAttribute (hWnd_Image, IMG_CANVAS, ATTR_PEN_MODE,VAL_XOR_MODE)

 

than draw your line..

when you want to erase the line draw it again with the same coordinates

 

when drawing the same line twice in xor mode the origunal canvas back ground will apear

 

Goo Luck

Daniel

0 Kudos
Message 2 of 2
(3,101 Views)