How can I draw XOR'ed line inside a bitmap ?
I load a .bmp (or .jpg) file into a TImage object like this :
Then, I want to draw a XOR'ed rectangle in that Image1. I tried like this :
with Image1.Canvas do
Pen.Mode := pmXOR;
Pen.Style := psSolid;
Pen.Color := clBlack;
But I dont see anything. What should I add into the code ?
I need XOR'ed mode, because if I draw the second time, the rectangle will be gone (back to the original Image1).