Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:

I have some bitmap images being displayed in a DataGridView's and on custom controls.  These are all basic lineart type images not pictures.  I recently noticed that they all looked slightly faded/washed out and when I examined screenshots I took I discovered that any color channels that should have had values of 0 had a value of 44 instead.  Color channels that had a value of 255 were unaffected.

The png images I'm using for toolbar icons are unaffected.

 

Updated info:

The problem appears to be with the ImageStream in the formname.resx file with the ImageList that dates back to when the project was created in VS2k3.  There the images are displayed properly; so this appears to be a VS2k8 issue in some way shape or form. 

Readding the images in 2k8 appears to fix the issue but my list is long enough to make that annoyingly time consuming.  Is there anything else I could do to thump it into behaving properly?

Posted
Updated 24-Nov-09 3:23am
v2

What format do you use ? jpeg is lossy, and the colors in a JPEG will change.
 
Share this answer
 
I ended up tossing the image stream and getting the images from the Resources.resx file instead.  Slightly more work; but this means that the images will always be accessed from the originals in source control and that any changes to the images will be automatically included in the next build.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900