patrick
patrick

Reputation: 16949

Programmatically draw a bitmap to a WPF Canvas?

How can I programmatically draw a bitmap to a WPF Canvas? (or should I do something else entirely?) I will have about 40 moving images.

Upvotes: 0

Views: 5230

Answers (2)

dcarneiro
dcarneiro

Reputation: 7150

I did something similar, but I wanted some logic on each image(object) so I created a UserControl with an image and just add the UserControl to the canvas.

Upvotes: 1

Tim Lloyd
Tim Lloyd

Reputation: 38434

If you need to dynamically create and modify bitmaps, then use a WritableBitmap. You can place these on a canvas.

Upvotes: 2

Related Questions