Как сканировать негативы с помощью TWAIN сканера?
В этом разделе
Вот C#/VB.NET код, который демонстрирует, как сканировать негативы с помощью TWAIN сканера:
public void ScanColorImageWithLightPath(Vintasoft.Twain.Device device)
{
device.ShowUI = false;
device.DisableAfterAcquire = true;
device.Open();
device.PixelType = Vintasoft.Twain.PixelType.RGB;
device.UnitOfMeasure = Vintasoft.Twain.UnitOfMeasure.Inches;
device.Resolution = new Vintasoft.Twain.Resolution(300f, 300f);
device.LightPath = Vintasoft.Twain.LightPath.Transmissive;
device.Acquire();
}
Public Sub ScanColorImageWithLightPath(device As Vintasoft.Twain.Device)
device.ShowUI = False
device.DisableAfterAcquire = True
device.Open()
device.PixelType = Vintasoft.Twain.PixelType.RGB
device.UnitOfMeasure = Vintasoft.Twain.UnitOfMeasure.Inches
device.Resolution = New Vintasoft.Twain.Resolution(300F, 300F)
device.LightPath = Vintasoft.Twain.LightPath.Transmissive
device.Acquire()
End Sub