Skip to main content

CameraControl.RotateAngle Property

Gets or sets the rotation angle of the control’s output.

Namespace: DevExpress.XtraEditors.Camera

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DefaultValue(RotateAngle.RotateNone)]
[DXCategory("Options")]
public RotateAngle RotateAngle { get; set; }

Property Value

Type Default Description
DevExpress.XtraEditors.Camera.RotateAngle RotateNone

A value that specifies the rotation angle of the control’s output.

Remarks

The RotateAngle property allows you to rotate the output of the CameraControl by 90, 180 and 270 degrees.

cameraControl1.RotateAngle = DevExpress.XtraEditors.Camera.RotateAngle.Rotate90;

The rotation angle setting is stored in the CameraControl, not in the connected camera device.

The control does not reset the rotation angle when you or an end user connects the CameraControl to another camera device. Handle the CameraControl.DeviceChanged event to respond to these cases.

Handle the CameraControl.DisplayOrientationChanging event to respond to display rotation.

See Also