Accusoft.ScanFixXpress7.Net
GetRectangle(Rectangle,Color,Boolean) Method
See Also  Send Feedback
Accusoft.ScanFixXpressSdk Namespace > ScanFix Class > GetRectangle Method : GetRectangle(Rectangle,Color,Boolean) Method




area
The area to extract from the original image.
padColor
The color used for new pixels if necessary.
allowPadding
Flag indicating whether padding or an error occurs if the 'area' is outside of the image bounds.

Glossary Item Box

Replaces the current image with a subset of the original image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

area
The area to extract from the original image.
padColor
The color used for new pixels if necessary.
allowPadding
Flag indicating whether padding or an error occurs if the 'area' is outside of the image bounds.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThrown when required argument value is null.
System.ArgumentOutOfRangeExceptionThrown when argument is out of range.
System.ComponentModel.InvalidEnumArgumentExceptionThrown when argument enum value is invalid.
ScanFixUnsupportedImageExceptionThrown when image type is unsupported.
ScanFixExceptionThrown when operation failed.

Remarks

If the specified area extends beyond the boundaries of the original image, either pixels of the padColor will be added or an error will occur depending upon the value of the 'allowPadding' parameter.

See Also

©2012. Accusoft Corporation. All Rights Reserved.