VB6 Extract Images (of any kind) from ImageList

Extract images (any views) from ImageList and save them as file with extension

Imagelist

+3
source share
2 answers

Have you tried using the method ExtractIcon? This will return an object IPictureDisprepresenting the item icon ListImage.

Then, once you have extracted the image object, you can simply call the function SavePictureto save it to a file on disk.

So you can use something like the following code:

Dim myPic As Picture
Set myPic = ImageList1.ListImages(1).ExtractIcon
SavePicture myPic, "C:\MyIcon.ico"  '(never hardcode a path in your actual code!)
+4
source

I think this is what you want: http://btmtz.mvps.org/gfxfromfrx/

I was very comfortable.

+4
source

All Articles