Splitting Icons

mrdutchie

Well-known member
Joined
Jul 7, 2003
Messages
78
Location
WI, USA
Ok, I have 3 icons in 1 ICO file, but how can I get each one
seperate?. So far when I open the ICO file, It only shows the
1st one.
 
In the Image menu, you can select from the Current Image Type submenu the icon you wish to view. You can then copy the icon to a new file.
 
Thanks, but I am not sure if we are on the same page;)

If I add a ICO file to the Images collection library as number 5
then I can select that icon within my ie. my button
as Imageindex 5
but how can I get within that ICO file thats in the Library under 5
the second or third icon, like image 5(1) or 5(2) just like a array

Or do I need to save the icons all as seperate ICO files instead of 1 ICO file.

Like the MS icons that have sometimes 6-8 pictures in it, each for its own resolution.
 
So, are you using an ImageList here, or what? I wouldnt recommend using .ico files for things like toolbars and whatnot, since they can act a bit wierd (showing the wrong size at times or whatever). I suggest you extract the files you need and save them as bitmaps (icons are basically just a bunch of little bitmaps in one file, anyway) and use those.

Sorry if I misunderstood your problem - you were a little vague.
 
Thanks...
That might also explain why sometimes the icons are goovy.
I will convert them to Bitmaps and use it like that.
Thanks again :) :cool:
 
Icons are often best left in their original icon format, using the Icon class. If you want to extract a certain sized icon from an existing icon, you use the constructor of the Icon class, passing in the original instance and the size you want.
 
Back
Top