Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement