开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜