title: Quality Problem when resizing images using C# Graphics Class
body: <p>I am resizing an small images (eg 20x25) to larger images (eg 150x170).
  My problem is not about quality, which as expected is has some blurring. My problem is that a border is that a light colour border is being created on the right hand side and bottom of the image. Is there a way that this can be removed?</p>
  
  <p>My code is the following:</p>
  
  <pre><code>using (Graphics g = Graphics.FromImage((Image)ResizedImage))
  {
      g.CompositingQuality = CompositingQuality.HighQuality;
      g.InterpolationMode = InterpolationMode.HighQualityBicubic;
      g.SmoothingMode = SmoothingMode.HighQuality;
  
      g.DrawImage(OrigImage, new Rectangle(0, 0, Width, Height),
       new Rectangle(0, 0, OrigCImage.Width, OrigImage.Height), GraphicsUnit.Pixel);
  }
  </code></pre>
  
  <p>thanks!</p>