Back to Devexpress

TakePictureDialog.ResolutionMode Property

windowsforms-devexpress-dot-xtraeditors-dot-camera-dot-takepicturedialog-0ee1f914.md

latest2.7 KB
Original Source

TakePictureDialog.ResolutionMode Property

Gets or sets the camera resolution mode.

Namespace : DevExpress.XtraEditors.Camera

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public ResolutionMode ResolutionMode { get; set; }
vb
Public Property ResolutionMode As ResolutionMode

Property Value

TypeDescription
ResolutionMode

The camera resolution mode.

|

Available values:

NameDescription
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.

|

Remarks

The Take Picture dialog saves the currently used 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 sets the maximum resolution supported by a camera device.

csharp
TakePictureDialog dialog = new TakePictureDialog();
dialog.ResolutionMode = ResolutionMode.Maximum;
dialog.ShowDialog();
vb
Dim dialog As TakePictureDialog = New TakePictureDialog()
dialog.ResolutionMode = ResolutionMode.Maximum
dialog.ShowDialog()

See Also

Device

TakePictureDialog Class

TakePictureDialog Members

DevExpress.XtraEditors.Camera Namespace