اضافه کردن عکس به پس زمینه یک فرم در دلفي
unit Unit1;

interface
uses
Windows, SysUtils, Classes, Graphics, Forms;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormPaint(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
backgroundImage : TBitmap;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
backgroundImage := TBitmap.Create;
backgroundImage.LoadFromFile(ExtractFilePath(Application.ExeName)+'background.bm​p');
end;
procedure TForm1.FormPaint(Sender: TObject);
beginCanvas.Draw( 0, 0, backgroundImage );
end;
procedure TForm1.FormDestroy(Sender: TObject);
beginbackgroundImage.Free;
end;
end.