Click or drag to resize
AspriseImagingGetSource Method

» Asprise Scan Home · Developer's Guide

Retrieve the source info optionally with caps.

Namespace: asprise_imaging_api
Assembly: asprise-imaging-scan.net-api (in asprise-imaging-scan.net-api.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Source GetSource(
	string sourceName,
	bool nameOnly,
	string capsToRetrieve = null,
	bool getCurrent = false,
	bool detectDeviceType = false,
	string capsToSet = null
)

Parameters

sourceName
Type: SystemString
the exact source name or "default" to open default source; "select" to prompt dialog selection
nameOnly
Type: SystemBoolean
if true, return the device name only
capsToRetrieve (Optional)
Type: SystemString
only effective if nameOnly is false - can be cap name or code separated by comma or 'all' to list all caps supported.
getCurrent (Optional)
Type: SystemBoolean
true to return current value false to return current value as well as value range if available.
detectDeviceType (Optional)
Type: SystemBoolean
detect whether the device has ADF and/or flatbed.
capsToSet (Optional)
Type: SystemString
optionally, you may set capabilities before getting capabilities, e.g, 'ICAP_PIXELTYPE: TWPT_GRAY,TWPT_BW; ICAP_XSCALING/RESET; ICAP_XRESOLUTION: 200'

Return Value

Type: Source
The source object
See Also