All pastes #36608 Raw Edit

Something

public text v1 · immutable
#36608 ·published 2006-01-12 18:55 UTC
rendered paste body
unit 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.