Wrong Colors
-
hi, strange problem with my colors: i want to display a tray icon but it always appears in black & white although the image HAS color. I've tried it with a 256 color bitmap, a 256 color icon, a 24 Bit color bitmap and a 24 Bit color icon (every variant with 16x16 Pixel) each time the same effect - JUST BLACK AND WHITE. Even with different functions for loading the images hasn't changed it. (tried LoadIcon, LoadImage and CreateIconIndirect ) any ideas what this may trigger ? greets
-
hi, strange problem with my colors: i want to display a tray icon but it always appears in black & white although the image HAS color. I've tried it with a 256 color bitmap, a 256 color icon, a 24 Bit color bitmap and a 24 Bit color icon (every variant with 16x16 Pixel) each time the same effect - JUST BLACK AND WHITE. Even with different functions for loading the images hasn't changed it. (tried LoadIcon, LoadImage and CreateIconIndirect ) any ideas what this may trigger ? greets
Unless you're using Windows XP, tray icons always render using the standard 16 system colours, so you'll need to provide a 16 colour icon to stop it trying to convert it for you (which usually looks awful) On XP, it renders the icons properly, using all available colours -- Help me! I'm turning into a grapefruit! Buzzwords!
-
Unless you're using Windows XP, tray icons always render using the standard 16 system colours, so you'll need to provide a 16 colour icon to stop it trying to convert it for you (which usually looks awful) On XP, it renders the icons properly, using all available colours -- Help me! I'm turning into a grapefruit! Buzzwords!
you're right - windows converts my icon into 16 colors. but how do i can make sure to use only the standard 16 system colors ?
-
you're right - windows converts my icon into 16 colors. but how do i can make sure to use only the standard 16 system colors ?
The simplest way is to copy your existing icon, add a new 16 colour icon to the resource in visual studio, and paste in your icon. This will create a 16 colour icon which you can then manually edit until it looks good enough (you can often redraw the icon yourself far better than windows will do itself when it remaps the icon at runtime) -- Help me! I'm turning into a grapefruit! Buzzwords!
-
The simplest way is to copy your existing icon, add a new 16 colour icon to the resource in visual studio, and paste in your icon. This will create a 16 colour icon which you can then manually edit until it looks good enough (you can often redraw the icon yourself far better than windows will do itself when it remaps the icon at runtime) -- Help me! I'm turning into a grapefruit! Buzzwords!
hm, although i hoped that i didn't have to redraw the icon by my self it's seems there leads no way around. 16 colors are ridiculous :mad: however, thanks anyway.