Mam taki problem już od dłuższego czasu [???] :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Img1: TBitmap; //Tego nie ma na formie
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Img1.Create;
Img1.LoadFromFile('image.bmp');
Form1.Canvas.Draw(5,5,Img1);
end;
end.