The fastest way to draw a bitmap?

I am working on a timelapse application and requires drawing a new frame every 30 ms. Frames are stored in isolated storage (they are 640x480).

I tried loading them first into a MemoryStream, and then converting them to BitmapImage and assigning them as the source for the Image control. But this is too long - it takes about 55 ms. I measured and did not read from the isolated storage, I actually uploaded the image to Image Control, which takes the longest time.

Is there a way to draw images faster on a Windows phone using silverlight, or should I consider this using XNA?

+4
source share
1 answer

Take a look at the WriteableBitmap class and the WritableBitmapEx open source library. The Blit method in WriteableBitmapEx will copy one bitmap to another. Not sure if it is enough for what you need, but it is very fast for what I do with it.

+2
source

All Articles