0

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.

OneMoreVladimir
  • 1,653
  • 3
  • 21
  • 32

1 Answers1

0

plenty of examples here in SO:

Drawing Pixels in WPF

WPF Canvas - Single Pixel Grid

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

Community
  • 1
  • 1
Davide Piras
  • 43,984
  • 10
  • 98
  • 147