Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
begin
Image1.Picture.Bitmap.Width := Screen.Width;
Image1.Picture.Bitmap.Height := Screen.Height;
Image1.Align := alClient;
end;
procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if ssLeft in Shift then
Image1.Picture.Bitmap.Canvas.LineTo(X, Y);
Image1.Picture.Bitmap.Canvas.MoveTo(X, Y);
end;
Sorry, ich habe trotzdem mit dem MouseMove Angaben gearbeitet.