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.
Exception | Description |
---|---|
System.ArgumentNullException | Thrown when required argument value is null. |
System.ArgumentOutOfRangeException | Thrown when argument is out of range. |
System.ComponentModel.InvalidEnumArgumentException | Thrown when argument enum value is invalid. |
ScanFixUnsupportedImageException | Thrown when image type is unsupported. |
ScanFixException | Thrown when operation failed. |
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.