PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV Mobile 27 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Torch (Property)
In french: Torche
The Torch property is used to determine and change how a Camera control uses the torch.
Remarks:
  • Android To turn on the torch, the Camera control must be visible on the screen.
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
Example
CAM_MyCamera.Torch = camTorchOn
Syntax

Determining the torch mode in a Camera control Hide the details

<Result> = <Camera control>.Torch
<Result>: Integer constant
Torch mode used by the camera:
camTorchAutoTorch turned on automatically according to the light conditions.
camTorchOffThe torch is always off.
camTorchOnThe torch is always on.

The torch is disabled by default.
<Camera control>: Control name
Name of the Camera control to be used.

Changing the torch mode in a Camera control Hide the details

<Camera control>.Torch = <New mode>
<Camera control>: Control name
Name of the Camera control to be used.
<New mode>: Integer constant
Torch mode used by the camera:
camTorchAutoTorch turned on automatically according to the light conditions.
camTorchOffThe torch is always off.
camTorchOnThe torch is always on.

The torch is disabled by default.
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment