d2dlib icon indicating copy to clipboard operation
d2dlib copied to clipboard

Can this be used without WPF or WinForms?

Open FrankenApps opened this issue 3 years ago • 4 comments

Hi, sorry to ask a question here.

I tried to use your Library in a standalone Net5 Console App, but it does not work and the error suggests, that I need to use WPF (or maybe WinForms). Is that true? I basically want to render to an Image (.png) and save it, so I would need no GUI.

FrankenApps avatar Feb 18 '21 14:02 FrankenApps

I think this library can be used without Windows Form. But currently there is no support to read back a rendered bitmap image from memory. I will try to add them and provide some example code later.

jingwood avatar Feb 18 '21 18:02 jingwood

Hi @FrankenApps, just confirm, although I think it can work without Windows Form or WPF, but maybe it requires a Windows OS with hardware acceleration GPU installed, it does not about .NET framework, it uses the Direct2D API from Windows System directly. What is your target platform?

jingwood avatar Feb 19 '21 03:02 jingwood

My target platform is windows 10 (with hardware acceleration). However I tried to target .Net5 (not Framework).

FrankenApps avatar Feb 19 '21 04:02 FrankenApps

Did you get around to adding support to read back the rendered bitmap? I would like to use D2D in a background task too.

habibrehmansg avatar Feb 23 '23 05:02 habibrehmansg