I’m working on a timelapse application and that requires drawing new frame every 30ms. Frames are stored in isolated storage (they are 640×480).
I tried loading them into MemoryStream first, and then convert to BitmapImage and assign as a Source for the Image control. But it’s too long – it takes about 55ms. I measured and it’s not reading from isolated storage, it’s actually loading image into Image control that take the longest.
Is there any way to draw images faster on windows phone with silverlight or should I consider doing so with XNA?
Take a look at the WriteableBitmap class and the open source library WritableBitmapEx. The
Blitmethod withinWriteableBitmapExwill copy one bitmap into another. Not sure if it’s fast enough for what you need, but it is very fast for what I’m doing with it.