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
with no dll?
c# wouldn't be the right language for that
also it's kind of a nonsense request tbh
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?
.NET pretty much relies on DLLs
Do graphics with primatives and windows with xaml
Absolutely despise making windows via functions
What kinds of graphics are you trying to do?
do you want to draw your own graphics?
Very barebones. No shapes, raw put xy pixels
you have to use bitblt and drawing events
putting pixels would be really slow