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
精彩评论