![]() |
Re: Mitte suchen (Image)
Danke euch allen...
Ich hab nun bemerkt, dass es deshalb nicht klappt, weil das Bild im image angepasst wird (in diesem Fall verkleinert). Gibt es irgendeine Möglichkeit, die eigentliche Bildgröße herauszufinden, und nicht die Größe der Image Komponente. mfg Gauggi |
Re: Mitte suchen (Image)
Autosize := true;
|
Re: Mitte suchen (Image)
Zitat:
|
Re: Mitte suchen (Image)
Delphi-Quellcode:
Be Creative---
img := TImage.Create;
img.Autosize := true; img.picture.bitmap.loadfromfile('c:\Dudidu.bmp'); x := img.Width; y := img.height; img.free; |
Re: Mitte suchen (Image)
Zitat:
|
Re: Mitte suchen (Image)
Das ganze mit weniger Resourcenaufwand:
Delphi-Quellcode:
Oder noch weniger Resourcen und Zeitaufwand:
img := TImage.Create;
Try img.picture.bitmap.loadfromfile('c:\Dudidu.bmp'); x := img.Picture.Width; y := img.Picture.height; Finally img.free; End;
Delphi-Quellcode:
bmp := TBitmap.Create;
Try bmp.loadfromfile('c:\Dudidu.bmp'); x := bmp.Width; y := bmp.height; Finally bmp.free; End; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:53 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz