开发者

Drawing on WPF with System.Drawing.Graphics?

开发者 https://www.devze.com 2023-03-11 14:36 出处:网络
I\'m making a ga开发者_如何转开发me in WPF in which I need to be able to use the drawing functions in System.Drawing.Graphics. I looked into the OnRender function, but that only has a DrawingContext o

I'm making a ga开发者_如何转开发me in WPF in which I need to be able to use the drawing functions in System.Drawing.Graphics. I looked into the OnRender function, but that only has a DrawingContext object, which is not what I need.

So, is there some control in WPF that I can place on my WPF Window that has an OnPaint (or something similar) event?


You could use the WindowsFormsHost to host a Win Forms Control with OnPaint overrided

0

精彩评论

暂无评论...
验证码 换一张
取 消