Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.IO.Stream s = new System.IO.Stream();
- bmpObj.Compress(Bitmap.CompressFormat.Jpeg, 100, s);
- using (System.IO.Stream outStream = System.IO.File.Create(targetFile))
- {
- bmpObj.Compress(Bitmap.CompressFormat.Png, 100, outStream);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement