VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / DeviceImageLayout Class / Set Method / Set(Single,Single,Single,Single) Method
Value of the left coordinate of the image layout rectangle.
Value of the top coordinate of the image layout rectangle.
Value of the right coordinate of the image layout rectangle.
Value of the bottom coordinate of the image layout rectangle.




In This Topic
    Set(Single,Single,Single,Single) Method
    In This Topic
    Sets the image layout rectangle of document/page/frame.
    Syntax
    'Declaration
     
    Public Overloads Sub Set( _
       ByVal left As Single, _
       ByVal top As Single, _
       ByVal right As Single, _
       ByVal bottom As Single _
    ) 
    'Usage
     
    Dim instance As DeviceImageLayout
    Dim left As Single
    Dim top As Single
    Dim right As Single
    Dim bottom As Single
     
    instance.Set(left, top, right, bottom)
    public void Set( 
       float left,
       float top,
       float right,
       float bottom
    )
    public: void Set( 
       float left,
       float top,
       float right,
       float bottom
    ) 
    public:
    void Set( 
       float left,
       float top,
       float right,
       float bottom
    ) 

    Parameters

    left
    Value of the left coordinate of the image layout rectangle.
    top
    Value of the top coordinate of the image layout rectangle.
    right
    Value of the right coordinate of the image layout rectangle.
    bottom
    Value of the bottom coordinate of the image layout rectangle.
    Exceptions
    ExceptionDescription
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Remarks
    The image layout rectangle defines what portion of the device's scanning area will be acquired.

    Document number can be set using the DocumentNumber property, Page number can be set using the PageNumber property, Frame number can be set using the FrameNumber property

    Call this method only when device is opened (State == DeviceState.Opened).

    This method has effect only if you do not use the User Interface (ShowUI=false).
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also