I want to put some images into a ToolStripButton
, and have the images change depending on the state of the button.
So I've set the .ImageList
of the ToolStrip
to be my ImageList
and simply change the ToolStripButton.ImageIndex
to the appropriate value.
However, the icons appear distorted in comparison to providing exactly the same picture directly to the ToolStripButton.Image
property.
In the picture below the image on the left hand side is the one from the ImageList
, the one on the right is being set through ToolStripButton.Image
. As you can see, the one on the left has some small odd pixels, specially visible when the button is selected.
I've tried modifying the TransparencyColor
and ColorDepth
but that's not made any difference. Any clues as to what I'm missing?