256+ Colors

How can i make the icons on my toolbar control show up in more than 16 colors. the icon files are true or 256 colors and i think they go down to 16 as soon as they get into the image list. how can i get them to be 256 colors or more??? ... these are all my points
hessAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cvidlerCommented:
The image list will not reduce the amount of colors in a picture (I just finish a program with 30 24-bit color images in  imagelist).  If your icons or only drawn/created in 16 color that's all that will be shown.  Another problem is icon files that contain more than one icon.

Win95 and later allows icon files (.ico) to have more than one icon in it. For example the creator could make icons of different sizes and oclor depth and save the all in the one file. Windows would then use the right one based on the size and color depth of the monitor.  Now when you load these into the imagelist the imagelist only loads the first icon in the file, often a smaller version (16x16) or a low color one (16 color).  In this case you must open the icon file in a icon editor load the high color one and save it to a seperate file, then load the new icon file (with the ONE icon you want) into the imagelist...

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hessAuthor Commented:
i made the icons myselft. they are true color and 32*32. that is all that is in them. when i see them they look like crap it is obvious that they have been reduced to 16 colors. there is only one icon in each ico file.... maybe ishould use bmps. can a toolbar control hold true color icons?
0
cvidlerCommented:
bitmaps would be a good idea - I'm not sure about 32-bit icons - I know 24-bit icons work well.

But bitmaps are a good idea - just means you'll have to set a transparent color if you need transparency.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

hessAuthor Commented:
ok ... how do you set a transpartent color in a bmp... i use psp 5
0
cvidlerCommented:
BMP's can't have transparent colors - but wait there is a way

Set the pixels you want transparent to some real weird color (something not used in the picture you want to see) and you then set the MaskColor property of the ImageList to the exact same color you used for the pixels you want trasnparent - the ImageList will take care of the rest.

BTW: The BackColor property is what will show through the transparent color - make sure it si set to the color you want the background to be :)
0
hessAuthor Commented:
thankyou
0
cvidlerCommented:
BTW - get PSP6 it is alot more powerful allowing you to test your transparency before you set it in VB, lets you easily make changes if needed. I got PSP6 as soon as it was released - much better than 5
0
hessAuthor Commented:
really... ok i will
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.