Best way to constantly draw a large number of bitmaps in WPF?

I am confused by this very simple problem. I am creating a tile-based game engine and should be able to allow the user to edit the map using the WPF user interface. Naively, I suggested that I could just keep updating the old old "buffered" System.Drawing.Graphics.Bitmap with Graphics.FromImage. I would draw the tiles that make up the map on the bitmaps, and then run the buffer bitmap on the screen. However, from my in-depth research, I now believe that this is not so simple.

Instead of carrying you around with what I have discovered so far (either not working or incredibly slow), can I ask very simply what is the best way to continuously draw a large number of bitmaps efficiently through the WPF user interface?

I will accept offers such as "back to Windows Forms." If this happens, then I will be very disappointed with WPF!

+5
source share
2 answers

WriteableBitmap WPF- , . MSDN .

+3

Freezable Bitmaps, , .

0

All Articles