windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-cameracontrol-fdaf3553.md
Gets or sets the rotation angle of the control’s output.
Namespace : DevExpress.XtraEditors.Camera
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
[DefaultValue(RotateAngle.RotateNone)]
[DXCategory("Options")]
public RotateAngle RotateAngle { get; set; }
<DefaultValue(RotateAngle.RotateNone)>
<DXCategory("Options")>
<Browsable(False)>
Public Property RotateAngle As RotateAngle
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraEditors.Camera.RotateAngle | RotateNone |
A value that specifies the rotation angle of the control’s output.
|
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;
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