(Gast)
n/a Beiträge
|
Re: Gleisbild??? mit was??? Paintbox für delphi??
25. Aug 2007, 21:58
Habe kein Lazarus, aber unter Delphi 'funktioniert' folgendes:
Delphi-Quellcode:
Unit Unit1;
Interface
Uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
Grids;
Type
TForm1 = Class(TForm)
DrawGrid1: TDrawGrid;
Button1: TButton;
Procedure Button1Click(Sender: TObject);
private
Image1: TBitmap;
End;
Var
Form1: TForm1;
Implementation
{$R *.dfm}
Procedure TForm1.Button1Click(Sender: TObject);
Begin
Image1 := TBitmap.Create;
Image1.LoadFromFile(' C:\Download\snap00854.bmp');
DrawGrid1.Canvas.Draw(1, 1, Image1);
End;
End.
|
|
Zitat
|