Question lazarus / 39-Graphics ---------------------------------------------------------------------- gyts · 2011-04-01 18:03 What's the difference between these two? http://img715.imageshack.us/i/98387345.png/ ---------------------------------------------------------------------- DirkS · 2011-04-01 18:10 Which 'two' are you referring to? It may be me but all I see what looks like a property entry in the object inspector (no idea what kind of component it is though) and a line of code... Gr. Dirk. ---------------------------------------------------------------------- Mando · 2011-04-01 18:29 Well, I you load the picture in edit-time, your executable will contain the image. In the other hand, if you do it in run-time, you must distribute the image with the executable. regards. ---------------------------------------------------------------------- lainz · 2011-04-01 18:33 Quote from: gyts on April 01, 2011, 08:03:58 pmWhat's the difference between these two? http://img715.imageshack.us/i/98387345.png/ If you use the Picture(TPicture) the image is saved with the project resources. If you use the code: Code: [Select]Image1.Picture.LoadFromFile('example.png');the picture is loaded from a file, not from a resource. ---------------------------------------------------------------------- gyts · 2011-04-01 19:37 When I load picture in project resources, then the .exe file would take up more space? ---------------------------------------------------------------------- DirkS · 2011-04-01 19:57 Quote from: gyts on April 01, 2011, 09:37:23 pmWhen I load picture in project resources, then the .exe file would take up more space? Yes, but as indicated above you would not need a separate image file. Gr. Dirk.