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
DisplayModePreview (Property)
In french: ModeAffichagePrévisualisation
The DisplayModePreview property is used to determine and change the display mode of the camera preview.
Remarks:
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
  • This property corresponds to the "Display mode" option in the "General" tab of the Camera control description window.
Example
SI LIST_Mode = 1 THEN
CAM_MyCamera.DisplayModePreview = camHomotheticCentered
END
Syntax

Determining the display mode of the camera preview Hide the details

<Result> = <Camera control>.DisplayModePreview
<Result>: Integer constant
Preview display 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 display mode of the camera preview 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 display 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