c# 4.0 - How can I save the picture on image control in wpf? -


i have simple wpf application wia.my app has image control... wondering how can save scanned picture on hard disk?

depends on type of image.source, assuming have bitmapsource in article should along lines:

var encoder = new pngbitmapencoder(); encoder.frames.add(bitmapframe.create((bitmapsource)image.source)); using (filestream stream = new filestream(filepath, filemode.create))     encoder.save(stream); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -