VintaSoft Twain .NET SDK Discussions
Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.
Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions
switch (opt.Colors)
{
case Color.BW:
_device.PixelType = PixelType.BW;
_device.BitDepth = 1;
break;
case Color.Gray:
_device.PixelType = PixelType.Gray;
break;
case Color.Color:
_device.PixelType = PixelType.RGB;
break;
default:
_device.PixelType = PixelType.BW;
_device.BitDepth = 1;
break;
}
_device.AcquiredImages.JpegQuality = 80;
_device.TransferMode = TransferMode.Memory;
_device.UnitOfMeasure = UnitOfMeasure.Inches;
_device.Resolution = new Resolution(200f, 200f);
// custom area to scan are in centimeters, so, I convert it.
_device.ImageLayout.Set(0, 0, (float)(opt.Size.Width / 2.54), (float)(opt.Size.Heigth / 2.54));