Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const string wiaFormatJPEG = "{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}";
- CommonDialogClass wiaDiag = new CommonDialogClass();
- WIA.ImageFile wiaImage = null;
- wiaImage = wiaDiag.ShowAcquireImage(
- WiaDeviceType.UnspecifiedDeviceType,
- WiaImageIntent.GrayscaleIntent,
- WiaImageBias.MaximizeQuality,
- wiaFormatJPEG, true, true, false);
- WIA.Vector vector = wiaImage.FileData;
- Image i = Image.FromStream(new MemoryStream((byte[])vector.get_BinaryData()));
- i.Save(filename)
Add Comment
Please, Sign In to add comment