ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
DisplayModePreview (Property)
In french: ModeAffichagePrévisualisation
The DisplayModePreview property gets and sets the camera preview mode.
Remarks:
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
  • This property corresponds to the "Preview mode" option in the "General" tab of the Camera control description window.
Example
IF LIST_Mode = 1 THEN
CAM_MyCamera.DisplayModePreview = camHomotheticCentered
END
Syntax

Getting the camera preview mode Hide the details

<Result> = <Camera control>.DisplayModePreview
<Result>: Integer constant
Preview mode currently used for the control:
camHomotheticScales the preview, respecting the aspect ratio of the source image, so that the preview is fully contained and aligned to the top-left corner of the control.
camHomotheticCenteredScales the preview, respecting the aspect ratio of the source image, so that the preview is fully contained and centered in the control.
camHomotheticCenteredExtendedScales the preview, respecting the aspect ratio of the source image, so that the preview is centered and fills the entire control.
camHomotheticExtendedScales the preview, respecting the aspect ratio of the source image, so that the preview is aligned to the top-left corner and fills the entire control.
<Camera control>: Control name
Name of the Camera control to be used.

Changing the camera preview mode Hide the details

<Camera control>.DisplayModePreview = <New adjustment mode>
<Camera control>: Control name
Name of the Camera control to be used.
<New adjustment mode>: Integer constant
New preview mode used for the control:
camHomotheticScales the preview, respecting the aspect ratio of the source image, so that the preview is fully contained and aligned to the top-left corner of the control.
camHomotheticCenteredScales the preview, respecting the aspect ratio of the source image, so that the preview is fully contained and centered in the control.
camHomotheticCenteredExtendedScales the preview, respecting the aspect ratio of the source image, so that the preview is centered and fills the entire control.
camHomotheticExtendedScales the preview, respecting the aspect ratio of the source image, so that the preview is aligned to the top-left corner and fills the entire control.
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 03/04/2024

Send a report | Local help