SHARE
TWEET

Untitled

a guest Jun 26th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. System.IO.Stream s = new System.IO.Stream();
  2. bmpObj.Compress(Bitmap.CompressFormat.Jpeg, 100, s);
  3.      
  4. using (System.IO.Stream outStream = System.IO.File.Create(targetFile))
  5. {
  6.   bmpObj.Compress(Bitmap.CompressFormat.Png, 100, outStream);
  7. }
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