Zoom Switch Control
Defined in namespace Scandit.DataCapture.Core.UI
- ZoomSwitchControl
class ZoomSwitchControl : IControl
Added in version 6.16.0
Control that allows switching between configurable camera zoom levels. The available zoom levels are filtered based on the camera hardware capabilities.
You can add this control to a view by calling DataCaptureView.AddControl().
- ZoomSwitchControl()
ZoomSwitchControl()Added in version 6.16.0
Initializes a new ZoomSwitchControl.
- ZoomedOutImage
Image ZoomedOutImage { get;set; }
Added in version 6.16.0
Deprecated since version 8.4: This property is deprecated and will be removed in a future release.
The button image displayed when the zoom level is set to 1x.
- ZoomedOutPressedImage
Image ZoomedOutPressedImage { get;set; }
Added in version 6.16.0
Deprecated since version 8.4: This property is deprecated and will be removed in a future release.
The button image displayed when the zoom level is set to 1x and the button is pressed.
- ZoomedInImage
Image ZoomedInImage { get;set; }
Added in version 6.16.0
Deprecated since version 8.4: This property is deprecated and will be removed in a future release.
The button image displayed when the zoom level is set to 2x.
- ZoomedInPressedImage
Image ZoomedInPressedImage { get;set; }
Added in version 6.16.0
Deprecated since version 8.4: This property is deprecated and will be removed in a future release.
The button image displayed when the zoom level is set to 2x and pressed.
- Orientation
ZoomSwitchOrientation Orientation { get;set; }
Added in version 8.5.0
The orientation of the zoom switch control. Defaults to ZoomSwitchOrientation.Default.
- AlwaysExpanded
boolAlwaysExpanded { get;set; }Added in version 8.5.0
When true, the control is always shown in its expanded state, displaying all zoom levels regardless of user interaction, and Expanded is always true. When false, the control can be collapsed. Defaults to false.
- Expanded
boolExpanded { get;set; }Added in version 8.5.0
Whether the control is currently expanded, showing all zoom levels. Can be set programmatically to expand or collapse the control. When AlwaysExpanded is true, this property always returns true and setting it has no effect.
- SelectedZoomLevel
floatSelectedZoomLevel { get; }Added in version 8.5.0
The currently selected zoom level.
- AccessibilityLabel
stringAccessibilityLabel { get;set; }Added in version 8.5.0
The accessibility label. The placeholder
<level>is replaced with the zoom factor of each button. Defaults to"Zoom <level>".
- AccessibilityHint
stringAccessibilityHint { get;set; }Added in version 8.5.0
The accessibility hint. Defaults to
"Adjusts the camera zoom level".
- SelectZoomLevel()
floatSelectZoomLevel(floatzoomLevel)Added in version 8.5.0
Selects the given zoom level, clamped to the range supported by the camera hardware. Returns the actual zoom level that was applied.