title: image.Save lossless quality, in XP, pixelated on Windows7?
body: <p>So I've come across a rather odd situation.</p>
  
  <p>I'm using the following to Save a PNG (lossless) image,</p>
  
  <pre><code>    public static void SaveJpeg(string path, Image image, int quality)
      {
          if ((quality &lt; 0) || (quality &gt; 100))
          {
              string error = string.Format("Jpeg image quality must be between 0 and 100, with 100 being the highest quality.  A value of {0} was specified.", quality);
              throw new ArgumentOutOfRangeException(error);
          }
          EncoderParameter qualityParam = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, quality);
          ImageCodecInfo imgCodec = GetEncoderInfo("image/png");
          EncoderParameters encoderParams = new EncoderParameters(1);
          encoderParams.Param[0] = qualityParam;
          image.Save(path, imgCodec, encoderParams);
      }
  
  public static ImageCodecInfo GetEncoderInfo(string mimeType)
      {
          string lookupKey = mimeType.ToLower();
          ImageCodecInfo foundCodec = null;
          if (Encoders.ContainsKey(lookupKey))
          {
              foundCodec = Encoders[lookupKey];
          }
          return foundCodec;
      }
  </code></pre>
  
  <p>This code works great in XP, the image gets saved lossless, when I zoom in, I see no pixelation whatsoever however, when this same compiled application is ran on a windows7 machine, the saved image looks pixelated.</p>
  
  <p>Is this due to the way I'm saving the image or perhaps something changing with the image save functionality / encoding in windows 7?</p>