Back to Devexpress

CameraControl.VideoStretchMode Property

windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-cameracontrol-16bd0950.md

latest2.5 KB
Original Source

CameraControl.VideoStretchMode Property

Gets or sets how the video frame fits the control.

Namespace : DevExpress.XtraEditors.Camera

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Options")]
public VideoStretchMode VideoStretchMode { get; set; }
vb
<DXCategory("Options")>
Public Property VideoStretchMode As VideoStretchMode

Property Value

TypeDescription
VideoStretchMode

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

|

Available values:

NameDescription
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

Resolution

Device

CameraControl Class

CameraControl Members

DevExpress.XtraEditors.Camera Namespace