.Png images get converted to grayscale when used in ImageList

I'm writing a C# windows forms application and I need some images to serve as icons in a TreeListListView I'm using an ImageList and add .pgn images to it.
The weird thing is that after restarting Visual Studio, my image has lost most of it's color enter image description here
Some of the properties of the image such as RawFormat are also different after restarting VS
enter image description here
As can be seen in this enlarged image there is almost no color left after restarting. This "grayscale" image is also what I see in my application.
enter image description here
I'm looking for an answer that explains what I'm seeing, and that offers a workaround
The ImageList itself has the following properties:
enter image description here



from Recent Questions - Stack Overflow https://ift.tt/30ZMllP
https://ift.tt/3vIGwEA

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)