Transparancy in icons used?

P

pnp

Hi all,
I'm developing a win app in C# and I am drawing by myself the icons that
I'm going to use in Corel Draw 11, then turn them to icons by using Axialis
and then use them from an imagelist in my app for icons. I use
Color.Transparent (imagelist transparent color) for the transparrent areas
of the icon.

The problem is that I get little white dots that don't belong to the picture
of my icon (garbage) at the edges and especially if the edges of the icon
fade to transparent.

Another problem is that after creating an icon with another IconEditor
(PaintExpress) I create again icons that fade to transparent and when I see
them from the file system or even the desktop they seem to be very good and
fading wery smoothly. But when I use them in my app the parts that fade to
transparent are shown black! I again use Color.Transparent for the
transparancy of the imagelist...

What can I do?

Thanks in advance,
Peter.
 
T

Tim Jarvis

Hi,

the controls in comctl32.dll can't handle alphablended icons (the
transparent bit). you have a couple options, use a manifest for your
application (which replaces at runtime the common controls dll), or
draw the icon manually i.e. graphics.DrawIcon(...)

Cheers Tim Jarvis.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top