SHARE
TWEET

Untitled

a guest Feb 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using (Graphics graph = Graphics.FromImage(destImg))
  2. {
  3.      graph.InterpolationMode = InterpolationMode.HighQualityBicubic;
  4.      graph.SmoothingMode = SmoothingMode.HighQuality;
  5.  
  6.      Rectangle srcRect = new Rectangle(0, 0, srcWidth, srcHeight);
  7.      Rectangle destRect = new Rectangle(0, 0, destWidth, destHeight);
  8.  
  9.      graph.DrawImage(srcImg, destRect, srcRect, GraphicsUnit.Pixel);
  10.  
  11.      srcImg.Dispose();
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top