Different versions of System.Drawing.dll cause different behavior? RRS feed

  • Question

  • User768014394 posted

    I have an application where I need to apply brightness, gamma, and contrast adjustment using a ColorMatrix on images.  I'm developing on a Windows 7 machine and it works great.  However, when I deploy to a Windows 2008 Server, Windows 2003 Server, or XP, the resulting image is all messed up.  Basically, adjusting the contrast is giving a psychadelic rainbow effect to parts of the image.

    The code and the image I'm testing with is identical so this tells me that it's environmental.

    Looking at the System.Drawing.dll, I see the following differences:

    Windows 7: version 2.0.50727.5420 modified 11/4/2010

    Server 2008: version 2.0.50727.4016 modified 3/29/2009

    What changed in the DLL that would affect the resulting image?  Can I deploy the DLL from Windows 7 to another environment, or is that dangerous?

    Tuesday, September 13, 2011 3:07 PM