Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImageScannerFlatbedConfiguration.SelectedScanRegion | selectedScanRegion property

Applies to Windows only

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.

Syntax


var selectedScanRegion = imageScannerFlatbedConfiguration.selectedScanRegion;
imageScannerFlatbedConfiguration.selectedScanRegion = selectedScanRegion;

Property value

Type: Rect

The location and size of a rectangle.

Remarks

This table describes the property's restrictions. Default values are set at the beginning of a new scan session.

NameDefault valueValid Flatbed valuesValid Feeder values
SelectedScanRegion.X0between 0 and MaximumScanArea.Width - 1between 0 and PageSizeDimenstions.Width
SelectedScanRegion.Y0between 0 and MaximumScanArea.Height - 1between 0 and PageSizeDimenstions.Height
SelectedScanRegion.WidthMaximumScanArea.Widthbetween MinimumScanArea.Width and (MaximumScanArea.Width – SelectedScanRegion.X)between MinimumScanArea.Width and PageSizeDimensions.Width
SelectedScanRegion.HeightMaximumScanArea.Heightbetween MinimumScanAreaHeight and (MaximumScanAreaHeight – SelectedScanRegion.Y)between MinimumScanArea.Height and PageSizeDimensions.Height

 

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Scanners
Windows::Devices::Scanners [C++]

Metadata

Windows.winmd

See also

ImageScannerFlatbedConfiguration

 

 

Show:
© 2014 Microsoft