C
C#2mo 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
Omnissiah2mo ago
with no dll? c# wouldn't be the right language for that also it's kind of a nonsense request tbh
SWR
SWR2mo 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
Buddy2mo ago
.NET pretty much relies on DLLs
HD-Fr0sT
HD-Fr0sT2mo ago
Do graphics with primatives and windows with xaml Absolutely despise making windows via functions
SWR
SWR2mo ago
What kinds of graphics are you trying to do?
Omnissiah
Omnissiah2mo ago
do you want to draw your own graphics?
HD-Fr0sT
HD-Fr0sT2mo ago
Very barebones. No shapes, raw put xy pixels
Omnissiah
Omnissiah2mo ago
you have to use bitblt and drawing events putting pixels would be really slow
Want results from more Discord servers?
Add your server