C
C#3mo ago
HD-Fr0sT

Can you use winAPI gdi and wpf with each other in c#?

Can you natively with no dll use winapi gdi graphics functions inside of a wpf xaml window?
8 Replies
Omnissiah
Omnissiah3mo ago
with no dll? c# wouldn't be the right language for that also it's kind of a nonsense request tbh
SWR
SWR3mo ago
No. But I believe you can import a WinForms control into a wpf window. Then you can use System.Graphics stuff on that, which is just a managed wrapper for gdi anyway. This whole thing feels like an XY problem though. What are you actually trying to do?
Buddy
Buddy3mo ago
.NET pretty much relies on DLLs
HD-Fr0sT
HD-Fr0sTOP3mo ago
Do graphics with primatives and windows with xaml Absolutely despise making windows via functions
SWR
SWR3mo ago
What kinds of graphics are you trying to do?
Omnissiah
Omnissiah3mo ago
do you want to draw your own graphics?
HD-Fr0sT
HD-Fr0sTOP3mo ago
Very barebones. No shapes, raw put xy pixels
Omnissiah
Omnissiah3mo ago
you have to use bitblt and drawing events putting pixels would be really slow
Want results from more Discord servers?
Add your server