ImageScannerFlatbedConfiguration.SelectedScanRegion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the origin coordinates (horizontal and vertical) and dimensions (width and height) of the selected scan area, in inches. This property is ignored when the AutoCroppingMode property is not Disabled.
public:
property Rect SelectedScanRegion { Rect get(); void set(Rect value); };
Rect SelectedScanRegion();
void SelectedScanRegion(Rect value);
public Rect SelectedScanRegion { get; set; }
var rect = imageScannerFlatbedConfiguration.selectedScanRegion;
imageScannerFlatbedConfiguration.selectedScanRegion = rect;
Public Property SelectedScanRegion As Rect
Property Value
The location and size of a rectangle.
Implements
Remarks
This table describes the property's restrictions. Default values are set at the beginning of a new scan session.
Name | Default value | Valid flatbed values | Valid feeder values |
---|---|---|---|
SelectedScanRegion.X | 0 | between 0 and MaximumScanArea.Width - 1 | between 0 and PageSizeDimenstions.Width |
SelectedScanRegion.Y | 0 | between 0 and MaximumScanArea.Height - 1 | between 0 and PageSizeDimenstions.Height |
SelectedScanRegion.Width | MaximumScanArea.Width | between MinimumScanArea.Width and (MaximumScanArea.Width – SelectedScanRegion.X) | between MinimumScanArea.Width and PageSizeDimensions.Width |
SelectedScanRegion.Height | MaximumScanArea.Height | between MinimumScanAreaHeight and (MaximumScanAreaHeight – SelectedScanRegion.Y) | between MinimumScanArea.Height and PageSizeDimensions.Height |