Preview 4K Camera in WinForms or WPF Component

iz111 86 Reputation points
2020-08-21T13:48:41.663+00:00

Hi,

I'm trying to preview 4K camera in WinForms application or host WPF component in WinForms if needed.
I found C++ CaptureEngineVideoCapture sample in Windows-classic-samples which uses DirectX and works fine.

CaptureEngineVideoCapture

The idea is to create dll from CaptureEngineVideoCapture sample and load it in my WinForms app.
Is this possible? What would be the best way to preview/render 4K camera stream in WinForms (or WPF)?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,626 Reputation points
    2020-08-24T06:49:56.493+00:00

    Hi iz111,
    You can use a library Camera_Net for working with cameras and video-inputs in .NET.
    This Library uses DirectShow which renders video streams from cameras.
    More details you can refer to this link.
    Best Regards,
    Daniel Zhang

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.