Torch Switch Control#
Defined in namespace Scandit.DataCapture.Core.UI.Control
-
TorchSwitchControl
# class TorchSwitchControl
: IControlAdded in version 6.2.0
Control that allows to toggle the torch on and off. The torch switch control hides itself automatically in case the active frame source doesn’t have a torch.
You can add this control to a view by calling DataCaptureView.AddControl().
-
TorchOffImage
# Bitmap
TorchOffImage
{ get;set; }Added in version 6.8.0
Sets the image to use for the control button when the torch is off.
-
TorchOffPressedImage
# Bitmap
TorchOffPressedImage
{ get;set; }Added in version 6.8.0
Sets the image to use for the control button when the torch is off and the button is pressed.
-
TorchOnImage
# Bitmap
TorchOnImage
{ get;set; }Added in version 6.8.0
Sets the image to use for the control button when the torch is on.
-
TorchOnPressedImage
# Bitmap
TorchOnPressedImage
{ get;set; }Added in version 6.8.0
Sets the image to use for the control button when the torch is on and the button is pressed.
-
SetTorchOffImage()
# void
SetTorchOffImage
(int
resId)Added in version 6.8.0
Sets the resource to use for the control button image when the torch is off.
-
SetTorchOffPressedImage()
# void
SetTorchOffPressedImage
(int
resId)Added in version 6.8.0
Sets the resource to use for the control button image when the torch is off and the button is pressed.
-
SetTorchOnImage()
# void
SetTorchOnImage
(int
resId)Added in version 6.8.0
Sets the resource to use for the control button image when the torch is on.
-
SetTorchOnPressedImage()
# void
SetTorchOnPressedImage
(int
resId)Added in version 6.8.0
Sets the resource to use for the control button image when the torch is on and the button is pressed.
-
SetImageResource()
# void
SetImageResource
(int
resId)Added in version 6.2.0
Sets the image to be used for all the the states of this control.
-
UpdateFromJson()
# void
UpdateFromJson
(string
json)Added in version 6.8.0
Updates the control according to a JSON serialization. See Serialization for details.
-