Groups | Blog | Home
all groups > dotnet drawing api > december 2003 >

dotnet drawing api : Jagged icons in VB.NET Imagelist? ARGH!



Moogy
12/29/2003 6:23:33 PM
Every time I load a nice-looking Windows XP Icon into my VB.NET Imagelist,
it turns out ugly and jagged around the edges. I believe this is from the
Alpha pixels being mapped to mask pixels instead of keeping their alpha
transparency value.

The ImageList is 32bbp with a size of 16x16.

So, how do I get around this problem and get my Windows XP icons into the
Imagelist properly so they display nicely in the Treeview? Is there a way
to get the icons into the Treeview without going through the Imagelist?

When I load the Icons myself, they display just fine...

Thanks!

Moogy
12/29/2003 7:15:37 PM
BTW - to see exactly the problem I'm having, check this out:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1180&lngWId=7

My icons look like Before.

Of course the above solution is not .NET and for Delphi, so I still have no
idea how to get around it.


[quoted text, click to view]

AddThis Social Bookmark Button