CameraDeviceSettings.CaptureEngine Property
Gets or sets the camera capture engine for all cameras.
Namespace: DevExpress.Data.Camera
Assembly: DevExpress.Data.Desktop.v26.1.dll
NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design
Declaration
Property Value
| Type | Description |
|---|---|
| CameraCaptureEngine | The camera capture engine. |
Available values:
| Name | Description |
|---|---|
| DirectShow | The DirectShow capture engine. |
| MediaFoundation | The Media Foundation capture engine. |
| Auto | If there is compatiblity with the camera, then the Media Foundation capture engine; otherwise, the DirectShow capture engine. |
Remarks
Specify the CaptureEngine property once at startup:
using DevExpress.Data.Camera;
namespace DXApplication2 {
internal static class Program {
[STAThread]
static void Main() {
ApplicationConfiguration.Initialize();
CameraDeviceSettings.CaptureEngine = CameraCaptureEngine.MediaFoundation;
Application.Run(new Form1());
}
}
}
Note
We recommend you set the CaptureEngine property to MediaFoundation or Auto to use the modern capture engine.
See Also