Images lazarus / 10-Designer ---------------------------------------------------------------------- byronarn · 2009-01-02 14:44 Lets say I wanted to display an image in my program, but I also want to be able to change that image at a later point.  Lets say I already have the images saved in my project folder.  How would I do this?  What component would I use, and what code would I use to set/change the image? ---------------------------------------------------------------------- byronarn · 2009-01-02 15:03 I assume I'd use TImage, but how do i get it to display the image?  And how do I change it later on? ---------------------------------------------------------------------- theo · 2009-01-02 17:41 Image1.Picture.LoadFromFile('myimg.png'); ---------------------------------------------------------------------- byronarn · 2009-01-02 17:56 Thank you! What I am doing is creating a virtual pet, and the image needs to be different depending upon how well he is taken care of.  Again, thanks so much for the help!  I really appreciate it! ---------------------------------------------------------------------- Zaher · 2009-01-03 16:30 Create a list of TPicture use TObjectList Load imgaes it to every item as like "theo" said e.g.   aList:=TObjectList.Create;   aList.Add(TPicture.Create);   (aList[0] as TPicture).LoadFromFile('myimg.png');   .... Now you can use it in your Timage that placed in the form TImage1.Picture.Assign(aList[0] as TPicture);