Skip to main content

CameraControl.VideoStretchMode Property

Gets or sets how the video frame fits the control.

Namespace: DevExpress.XtraEditors.Camera

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Options")]
public VideoStretchMode VideoStretchMode { get; set; }

Property Value

Type Description
VideoStretchMode

A VideoStretchMode enumeration value that specifies how the video frame fits the control.

Available values:

Name Description
Default

The default mode. This value is equivalent to the ZoomInside value.

ZoomOutside

Zooms the video frame proportionally, making its smaller side (width or height) displayed in its entirety. The frame is centered, so the larger side (height or width) is not displayed in its entirety.

ZoomInside

Zooms the video frame proportionally, so that it is displayed in the client area in its entirety.

Stretch

The video frame is stretched to fill the available client area.

None

The video frame is not stretched.

Remarks

The VideoStretchMode property allows you to specify how the video frame is stretched to fit the control bounds. With the CameraDeviceBase.Resolution property, you can also specify the resolution of the video stream captured by the currently used device (accessible through the CameraControl.Device property).

See Also