Autor Beitrag
christian87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Do 18.01.07 16:14 
Hi,

Ich will ein Spielfeld auf einer Paintbox erstellen. Jetzt möchte ich ein jpg Bild als Hintergrund verwenden. Wie mache ich das?
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Do 18.01.07 16:22 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
uses
  JPEG;


var
  j : TJpegImage;

  j.LoadFromFile('C:\Bla\bla.jpg');
  Canvas.StretchDraw(Canvas.ClipRect, J);
  j.free;


...so oder so ähnlich