ImageList1.GetIcon(imageindex, ico);// ico is a pre-created TIcon
Of course, I don't know what you are doing exactly, but my attached demo works correctly.
Regarding your screenshot: it looks as if you added smaller images to the 32x32 image list. The Lazarus image list is different from the Delphi image list in that it accepts images at different sizes and scales them to the size specified (or even several sizes if you click "Add resolution" in the imagelist editor dialog).
Title: Re: Can't get large icon ListView report
Post by: AsleyCruz on March 18, 2020, 12:18:37 am
ImageList1.GetIcon(imageindex, ico);// ico is a pre-created TIcon
Of course, I don't know what you are doing exactly, but my attached demo works correctly.
Thanks wp, works great but I wasnt clear. I want to... - Get icon 32x32 of any file - Save the loaded icon on the ImageList1. - Apply the loaded icon to ListView in vsReport mode.