Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CameraControl.RotateAngle Property

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

Namespace: DevExpress.XtraEditors.Camera

Assembly: DevExpress.XtraEditors.v24.2.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