VB.NET png Icon transperency not working as intended

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tenowg
    New Member
    • Sep 2007
    • 9

    VB.NET png Icon transperency not working as intended

    Hey guys, I am at work with a few minutes so I appogize for not having any code handy, hopefully this is a simple enough question that I don't need the code, but if I do I will gladly post it when I get home in a few hours.

    My question is this: I am trying to add Icons to a Listview, the icon files are in png format, adding the icon is not seemingly the issue. I am having problem with transarent backgrounds. When editing the png file with my image editor, or previewing the image in any preview program all the transarencies work great. When I add then to the ImageList, and then to the ListView, only some of the background is transarent. This leaves most of the image covered in a dark blob.

    Do I need to convert the image to another format and select a transarent color, or is there a common fix for this. Again if you need to see my simple test code I am using to figure this out i will gladdly post it.

    Thanks
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Have you tried using the icon editor that comes with Visual Studio? it could be that the transparency "color" is off by a little when you port from your image editing software back to you application.

    Comment

    • Tenowg
      New Member
      • Sep 2007
      • 9

      #3
      I will give this a shot and see what happens, thanks

      Comment

      Working...