Skip to main content
Table of Contents

TTMSFNCWXCamera.KeepRatio Property

Controls whether the video preview preserves the camera aspect ratio.

API unit family: TMSFNCWXCamera Declaring type: TTMSFNCWXCamera Inherited from: TTMSFNCWXCustomCamera Type: Boolean

Syntax

FMX.TMSFNCWXCamera.hppPascalC++
property KeepRatio: Boolean;
__property bool KeepRatio = {read=FKeepRatio, write=SetKeepRatio, default=1};

Default: True

Remarks

When True (the default) the preview keeps the source aspect ratio; when False the preview stretches to fill the control.