![]() |
bild aus imagelist in Image
gut, ihr haltet mich jetzt warscheinlich für einen :stupid: volltrotel :oops: aber meine frage ist:
wie lädt man ein bild aus einer imagelist in ein image |
Re: bild aus imagelist in Image
einfach mal die sufu benutzen ;)
[edit=Jelly] Mfg, Jelly[/edit] |
Re: bild aus imagelist in Image
1. ich weiß, dass ich dumm bin.
2. Danke für die tolle antwort |
Re: bild aus imagelist in Image
Ich würds mal per GetBitmap versuchen.
|
Re: bild aus imagelist in Image
hab schon mal n bisschen rumprobiert, aber ich hab dann immer probleme mit den typen TBitmap und TPicture
|
Re: bild aus imagelist in Image
Hi,
Delphi-Quellcode:
imagelist1.GetBitmap(0,image1.Picture.Bitmap);
|
Re: bild aus imagelist in Image
Zitat:
|
Re: bild aus imagelist in Image
ich hab jetzt noch ein problem:
Wenn in dem Image schon ein bild drin ist, dann lädt er kein neues mehr rein |
Re: bild aus imagelist in Image
Noch eine andere Möglichkeit:
Delphi-Quellcode:
Das geht sogar auch, ist bestimmt nicht so gut.
var
Bild: TBitmap; begin Bild:= TBitmap.Create; try imagelist1.GetBitmap(0, Bild); image1.Picture.Bitmap.Assign(Bild); finally Bild.Free; end;
Delphi-Quellcode:
image1.Picture.Bitmap:= nil; imagelist1.GetBitmap(0, image1.Picture.Bitmap); |
Re: bild aus imagelist in Image
Klappt super, vielmals danke :-D
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:42 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