VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / AcquiredImage Class / Crop Method
The x-coordinate of the upper-left corner of the crop rectangle.
The y-coordinate of the upper-left corner of the crop rectangle.
The width of the crop rectangle.
The height of the crop rectangle.




In This Topic
    Crop Method (AcquiredImage)
    In This Topic
    Crops specified region of an image.
    Syntax
    'Declaration
     
    Public Function Crop( _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As AcquiredImage
    Dim x As Integer
    Dim y As Integer
    Dim width As Integer
    Dim height As Integer
    Dim value As Boolean
     
    value = instance.Crop(x, y, width, height)
    public bool Crop( 
       int x,
       int y,
       int width,
       int height
    )
    public: bool Crop( 
       int x,
       int y,
       int width,
       int height
    ) 
    public:
    bool Crop( 
       int x,
       int y,
       int width,
       int height
    ) 

    Parameters

    x
    The x-coordinate of the upper-left corner of the crop rectangle.
    y
    The y-coordinate of the upper-left corner of the crop rectangle.
    width
    The width of the crop rectangle.
    height
    The height of the crop rectangle.

    Return Value

    true if image is cropped; false if image is not cropped.
    Exceptions
    ExceptionDescription
    Thrown if cropRect is not correct.
    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