开发者

wpf display drawing in an Image

开发者 https://www.devze.com 2023-04-02 09:49 出处:网络
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 disp开发者_如何学Clay

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 disp开发者_如何学Clay 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.


plenty of examples here in SO:

Drawing Pixels in WPF

WPF Canvas - Single Pixel Grid

http://msdn.microsoft.com/en-us/library/ms747393.aspx

0

精彩评论

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