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: (.NET 4.5.2, x86)
public bool EnableCamera(
	TwainCameraSide camera,
	bool enabled


Type: Atalasoft.TwainTwainCameraSide
The camera to affect.
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)"]

Thrown if the state is not SourceOpen.
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