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?
 
cvidlerConnect With a Mentor Commented:
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
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.