- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi Canvas.LineTo 画线
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
begin
{ First call FillRect to paint the surface of the form.
This removes any previously drawn lines (and anything else). }
Canvas.FillRect(ClientRect);
Canvas.MoveTo(0, 0);
Canvas.LineTo(X, Y);
end;