windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-takepicturedialogshowingeventargs-9694504d.md
Gets or sets the camera resolution mode.
Namespace : DevExpress.XtraEditors.Camera
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public ResolutionMode ResolutionMode { get; set; }
Public Property ResolutionMode As ResolutionMode
| Type | Description |
|---|---|
| ResolutionMode |
The camera resolution mode.
|
Available values:
| Name | Description |
|---|---|
| Default |
The default resolution of the selected camera device.
| | LastUsed |
The most recently used resolution.
| | Manual |
The resolution is specified by the ManualResolution property (TakePictureDialogShowingEventArgs.ManualResolution and TakePictureDialog.ManualResolution).
| | Maximum |
The maximum resolution supported by the camera device.
|
The Take Picture dialog saves the current camera device and resolution in the system registry when a user closes the dialog.
The most recently used resolution is applied the next time a user opens the dialog if the ResolutionMode property is set to LastUsed (default value).
See the ResolutionMode topic for a list of available camera resolution options.
The following example handles the PictureEdit.TakePictureDialogShowing event to apply the maximum resolution supported by a camera device.
private void pictureEdit1_TakePictureDialogShowing(object sender, TakePictureDialogShowingEventArgs e) {
e.ResolutionMode = ResolutionMode.Maximum;
}
Sub PictureEdit1_TakePictureDialogShowing(sender As Object, e As DevExpress.XtraEditors.Camera.TakePictureDialogShowingEventArgs) Handles PictureEdit1.TakePictureDialogShowing
e.ResolutionMode = DevExpress.XtraEditors.Camera.ResolutionMode.Maximum
End Sub
See Also
TakePictureDialogShowingEventArgs Class