PageOrientation Property (Device)
Gets or sets the orientation of images for current scan session.
Call this property only when device is opened (DeviceState == DeviceState.Opened).
This C#/VB.NET code shows how to acquire A4 black-white images from the device.
Public Sub ScanPage(device As Vintasoft.Twain.Device)
device.ShowUI = False
device.DisableAfterAcquire = True
device.Open()
device.PixelType = Vintasoft.Twain.PixelType.BW
device.PageSize = Vintasoft.Twain.PageSize.A4
device.PageOrientation = Vintasoft.Twain.PageOrientation.Landscape
device.UnitOfMeasure = Vintasoft.Twain.UnitOfMeasure.Inches
device.Resolution = New Vintasoft.Twain.Resolution(300F, 300F)
device.Acquire()
End Sub
public void ScanPage(Vintasoft.Twain.Device device)
{
device.ShowUI = false;
device.DisableAfterAcquire = true;
device.Open();
device.PixelType = Vintasoft.Twain.PixelType.BW;
device.PageSize = Vintasoft.Twain.PageSize.A4;
device.PageOrientation = Vintasoft.Twain.PageOrientation.Landscape;
device.UnitOfMeasure = Vintasoft.Twain.UnitOfMeasure.Inches;
device.Resolution = new Vintasoft.Twain.Resolution(300f, 300f);
device.Acquire();
}
Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5