How to update ColorKeyBitmap Source

Oct 13, 2011 at 5:25 PM

I write code below.

colorKeyBmp.Source = bitSrc; 

but  it does not update colorKeyBmp.

What's wrong?

Oct 13, 2011 at 7:33 PM

Unfortunately, WPF caches the contents of the bitmap and so it is not possible to change it at runtime.  You have to replace the bitmap with a new one.