Author | Message | Time |
---|---|---|
MyStiCaL | I searched for help google, pscode, microsoft if theres a way to export the images out of the Imagelist, no help found.. is this possible? I added my images to my ImageList along time ago deleted them and i'd like to get them back out -_- Any ideas thx n advanced eaither leave a post or IM Me. Edit: i've never had the need to do this untill now.. so i don't know nothing about it. | February 14, 2006, 11:57 AM |
FrOzeN | Yes, this is very simple. [code]Private Sub Form_Load() SavePicture ImageList1.ListImages(1).Picture, "C:\picture.jpg" End Sub[/code] Pretty self explanatory from there on. Just use a loop to go through all the images. :) | February 14, 2006, 12:10 PM |
MyStiCaL | Thanks, Sad i couldn't think of somthing as easy as that. ;) | February 14, 2006, 12:24 PM |
HeRo | I had this problem and all I did to extract ALL of them at the same time was: [code]Private Sub Form_Load() Dim X As Integer For X = 1 To 'AMOUNT OF IMAGES IN IMAGELIST SavePicture IMAGELISTNAME.ListImages(X).Picture, App.Path & "\Icons\icon(" & X & ").jpg" Next X End Sub[/code] | April 13, 2006, 11:52 PM |
Topaz | Pass the icon to a picture object and use SavePicture() | April 14, 2006, 2:46 AM |
JoeTheOdd | Three times, now, that solution has been given. =p | April 16, 2006, 10:32 AM |