jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
245 stars 43 forks source link

Can this be used without WPF or WinForms? #54

Open FrankenApps opened 3 years ago

FrankenApps commented 3 years ago

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.

jingwood commented 3 years ago

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 commented 3 years ago

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?

FrankenApps commented 3 years ago

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

habibrehmansg commented 1 year ago

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