C# Class NAPS2.Scan.Wia.WiaApi

Mostra file Open project: cyanfish/naps2 Class Usage Examples

Public Methods

Method Description
Configure ( Device device, System.Item item, ScanProfile profile ) : void
DeviceFeederReady ( Device device ) : bool
DeviceSupportsDuplex ( Device device ) : bool
DeviceSupportsFeeder ( Device device ) : bool
GetDevice ( ScanDevice scanDevice ) : Device
GetDeviceName ( Device device ) : string
GetDeviceName ( string deviceID ) : string
GetItem ( Device device, ScanProfile profile ) : System.Item
GetScanDeviceList ( ) : List
PromptForScanDevice ( ) : ScanDevice
ThrowDeviceError ( COMException e ) : void
ThrowDeviceError ( Exception error ) : void

Private Methods

Method Description
ConfigureDeviceProperties ( Device device, ScanProfile profile ) : void
ConfigureItemProperties ( Device device, System.Item item, ScanProfile profile ) : void
GetDeviceIntProperty ( Device device, int propid ) : int
GetDeviceProperty ( Device device, int propid ) : string
GetItemIntPropertyMax ( System.Item item, int propid ) : int
SetDeviceIntProperty ( Device device, int value, int propid ) : void
SetItemIntProperty ( System.Item item, int value, int propid ) : void
SetItemIntProperty ( System.Item item, int value, int expectedMin, int expectedMax, int propid ) : void

Method Details

Configure() public static method

public static Configure ( Device device, System.Item item, ScanProfile profile ) : void
device Device
item System.Item
profile ScanProfile
return void

DeviceFeederReady() public static method

public static DeviceFeederReady ( Device device ) : bool
device Device
return bool

DeviceSupportsDuplex() public static method

public static DeviceSupportsDuplex ( Device device ) : bool
device Device
return bool

DeviceSupportsFeeder() public static method

public static DeviceSupportsFeeder ( Device device ) : bool
device Device
return bool

GetDevice() public static method

public static GetDevice ( ScanDevice scanDevice ) : Device
scanDevice ScanDevice
return Device

GetDeviceName() public static method

public static GetDeviceName ( Device device ) : string
device Device
return string

GetDeviceName() public static method

public static GetDeviceName ( string deviceID ) : string
deviceID string
return string

GetItem() public static method

public static GetItem ( Device device, ScanProfile profile ) : System.Item
device Device
profile ScanProfile
return System.Item

GetScanDeviceList() public static method

public static GetScanDeviceList ( ) : List
return List

PromptForScanDevice() public static method

public static PromptForScanDevice ( ) : ScanDevice
return ScanDevice

ThrowDeviceError() public static method

public static ThrowDeviceError ( COMException e ) : void
e System.Runtime.InteropServices.COMException
return void

ThrowDeviceError() public static method

public static ThrowDeviceError ( Exception error ) : void
error System.Exception
return void