卷 卷起千堆雪tyn Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-13 #3 运用异或线 : procedure TForm1.Button1Click(Sender: TObject); begin Canvas.Pen.Mode :=pmNotXor; Canvas.MoveTo(100,100); Canvas.LineTo(200,200); end; procedure TForm1.Button2Click(Sender: TObject); begin Canvas.MoveTo(100,100); Canvas.LineTo(200,200); end;
运用异或线 : procedure TForm1.Button1Click(Sender: TObject); begin Canvas.Pen.Mode :=pmNotXor; Canvas.MoveTo(100,100); Canvas.LineTo(200,200); end; procedure TForm1.Button2Click(Sender: TObject); begin Canvas.MoveTo(100,100); Canvas.LineTo(200,200); end;
D dittw Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-13 #4 在public部分加一个:procedure ClearCanvas; procedure TForm1.ClearCanvas; begin with Canvas do begin Brush.Style:=bsSolid; Brush.Color:=clWhite; FillRect(ClipRect); end; end; 在需要的地方加上就可以了!
在public部分加一个:procedure ClearCanvas; procedure TForm1.ClearCanvas; begin with Canvas do begin Brush.Style:=bsSolid; Brush.Color:=clWhite; FillRect(ClipRect); end; end; 在需要的地方加上就可以了!