Click or drag to resize

DeviceEnableCamera Method

Use this method to enable or disable cameras used when scanning.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public bool EnableCamera(
	TwainCameraSide camera,
	bool enabled
)

Parameters

camera
Type: Atalasoft.TwainTwainCameraSide
The camera to affect.
enabled
Type: SystemBoolean
A value indicating whether the camera should be enabled. Pass in false to disable the camera.

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Atalasoft.Twain.Device.EnableCamera(Atalasoft.Twain.TwainCameraSide,System.Boolean)"]

Exceptions
ExceptionCondition
Thrown if the state is not SourceOpen.
Remarks
In addition to enabling a camera, some scanners allow each camera to have different capability values. However, there is no way to query whether a device supports this. For a best guess, try setting one capability after enabling a camera, then enable another camera to see if that property value has also changed. If the other camera capability has changed, the device does not support individual camera settings.
See Also