Thema: Delphi Mitte suchen (Image)

Einzelnen Beitrag anzeigen

Muetze1
(Gast)

n/a Beiträge
 
#16

Re: Mitte suchen (Image)

  Alt 6. Jan 2007, 15:39
Das ganze mit weniger Resourcenaufwand:

Delphi-Quellcode:
img := TImage.Create;
Try
  img.picture.bitmap.loadfromfile('c:\Dudidu.bmp');
  x := img.Picture.Width;
  y := img.Picture.height;
Finally
  img.free;
End;
Oder noch weniger Resourcen und Zeitaufwand:

Delphi-Quellcode:
bmp := TBitmap.Create;
Try
  bmp.loadfromfile('c:\Dudidu.bmp');
  x := bmp.Width;
  y := bmp.height;
Finally
  bmp.free;
End;
  Mit Zitat antworten Zitat