bool Acquire(string, SourceTypeFlags, DPI, int, int, int, int)

Starts a scanning operation.

Security

Trust Level Required: Full Trust

Parameters

Name Description
deviceName (Optional) string
The name of the device, as specified in the Config Tool.
srcType (Optional) SourceTypeFlags
The component source to use when scanning, such as the flatbed, the feeder, or unspecified. Default: NotConfigured.
dpi (Optional) DPI
The quality, or resolution of the scan in dots per inch. Default: High.
x (Optional) int
The x-axis offset for the scan. Default: -1.
y (Optional) int
The y-axis offset for the scan. Default: -1.
width (Optional) int
If x and y offsets are not -1, the width for the scan. Default: 0.
height (Optional) int
If x and y offsets are not -1, the height for the scan. Default: 0.

Return

true, if the command was successfully queued.

Remarks

When the scanning operation is complete, OnDeviceData will be called.