Show: Delphi C++
Display Preferences

FMX.Media.TCameraComponent.TorchMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TorchMode: TTorchMode read GetTorchMode write SetTorchMode;

C++

__property TTorchMode TorchMode = {read=GetTorchMode, write=SetTorchMode, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.Media.pas
FMX.Media.hpp
FMX.Media TCameraComponent

Description

Selects the different modes for the torch: on, off, or auto.

The TorchMode property can take one of three values enumerated by TTorchMode: ModeOff, ModeOn, and ModeAuto.

For example, to turn on the torch of the CameraComponent1 TCameraComponent, you can use the following line:

Delphi:

CameraComponent.TorchMode := TTorchMode.ModeOn;

C++:

CameraComponent->TorchMode = TTorchMode::ModeOn;

Use the HasTorch property to see whether the camera device has a torch.

See Also

Code Samples

Personal tools
In Other Languages
Previous Versions
Assistance