The desired layout for scanned images can be specified prior to initiating a scanning session, by setting the TwainDevice.ImageLayout property. The ImageLayout rectangle defines what portion of the Data Source's scanning area is acquired.
![]() |
It is also a good idea to set the ICAP_UNITS capability for the scanner prior to using the ImageLayout method to specify the unit of measure you'll be using. |
C# Example | ![]() |
---|---|
// This code demonstrates how to set the Image Layout rectangle to 6.5 inches X 9 inches twainDevice.ImageLayout = new RectangleF(1, 1, 6.5F, 9); |
![]() |
ImageLayout can only be modified, or set, prior to initiating the scanning session (StartSession) and after opening a session (OpenSession). |