Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting 256 color or true color icons from a bitmap. 1

Status
Not open for further replies.

wraygun

Programmer
Dec 9, 2001
272
US
In thread 222-1012528, strongm posted a very useful Iconize function. Is seems that this will convert the bmp to a 16 color icon. I modified to function to save the new icon.
Code:
With CreateObject("MSComctlLib.ImageListCtrl")
    
    .MaskColor = lTransparantColor
    .UseMaskColor = True
    Set Iconize = .ListImages.Add(, , LoadPicture(strGraphicFile)).ExtractIcon
    SavePicture .ListImages(1).ExtractIcon, "c:/NewIcon.ico"

End With

Is is possible to save this new icon in 256 colors or true color?

Thanks,
Harold


***You can't change your past, but you can change your future***
 
Last month there was a submission at PCS for an icon editor, pretty nice.




Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top