Hallo
warum muss ich Picture1 deklarieren ?
Delphi-Quellcode:
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
if OpenPictureDialog1.Execute then
begin
Image1.Picture.LoadFromFile('vorschau.bmp');
Image1.Height:=Picture1.Height * Image1.Height / Picture1.Width; // undeclared Picture1 !
Image1.Stretch := true;
end;
end;
Picture1 ist das Bild in Image1. warum Undeclaed ?