remove the
img.Save("check1.jpg", jpegCodec, encoderParams);
line and use the Image instance
img
to whatever you want. I guess you don't know how to use
Image
, but to get futher help on that front you'll need to tell us what you want to use it for. Display it in an UI (ASP.NET, Winforms, WPF)?