How to I copy an image from a TImageList to a TImage in Delphi?
Posted on 2003-03-16
Hi all, I hope you can help me out here!
I have a form in Delphi 6 which consists of a TImage and TImageList. My TImageList consists of various icons, and I'd like to put one of them in the TImage so that it is displayed on the form - for example the first image in the list (0).
How to I copy an image from a TImageList to a TImage?
I want to then save the TImage as a PNG image file, that I can do using some demo code I've obtained elsewhere, however if anyone can show me a better of doing this, I'd be most grateful! Cheers.