简体   繁体   中英

wpf display drawing in an Image

I recently started learning WPF. In my program I need to draw a picture at runtime and display it. It seems that I should use Image class, but how should I paint the picture and display it? Using windows forms I would initialize Graphics and draw in a Bitmap displaying it in a PictureBox. Can I do something simmilar in WPF? Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM