[SOLVED] PNG image format in LFM lazarus / 31-LCL ---------------------------------------------------------------------- Dmitriy · 2020-08-11 13:43 Have a nice day! Where can I read the description of Picture.Data format in LFM-file? For example, for PNG image. LCLVersion = '2.0.8.0' object Image1: TImage Picture.Data = {1754506F727461.......} Best regards, Dmitriy. ---------------------------------------------------------------------- Handoko · 2020-08-11 13:57 Hello Dmitriy, Welcome to the forum. Why do you need to read it directly from the .LFM file? If you really need to do it, you should load it into memory and you can get the data. It is a bit hard, but you can learn it here: https://forum.lazarus.freepascal.org/index.php/topic,48612.0.html ---------------------------------------------------------------------- lucamar · 2020-08-11 14:31 You might also look to the code for TPicture or TPNGImage (or however it's called) to see how they implement it. Or somewhere in the source of Lazarus itself, dauntig as the task may seem. ---------------------------------------------------------------------- marcov · 2020-08-11 14:44 It's probably just the image uuencoded and prefixed by some record that lists e.g. coordinates and maybe format). ---------------------------------------------------------------------- Dmitriy · 2020-08-19 16:01 Quote from: Handoko on August 11, 2020, 03:57:49 pmHello Dmitriy, Welcome to the forum. Why do you need to read it directly from the .LFM file? If you really need to do it, you should load it into memory and you can get the data. It is a bit hard, but you can learn it here: https://forum.lazarus.freepascal.org/index.php/topic,48612.0.html I'm making small Lazarus online for school. Thank you for the link! I've found interesting information there. ---------------------------------------------------------------------- Dmitriy · 2020-08-19 18:28 Thanks for all! The topic can be closed, but I don't know how to do this... ---------------------------------------------------------------------- dsiders · 2020-08-19 18:32 Quote from: Dmitriy on August 19, 2020, 08:28:22 pmThanks for all! The topic can be closed, but I don't know how to do this... Edit the subject line in the first post to include '[SOLVED]' at the beginning.