rendered paste bodyunit Symulacje;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
PaintBox1: TPaintBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
Bmp: TBitmap;
paintbox1:TPaintBox;
z: String;
begin
Bmp := TBitmap.Create;
Bmp.LoadFromFile('D:/Downloads/z/cos.bmp');
paintbox1.canvas.Draw(0, 0, Bmp);
Bmp.Free;
File.Free;
end;
end.