Sunday, 18 August 2013

Update BitmapImage every second flickers

Update BitmapImage every second flickers

I am trying to update an image by setting the source property every
second, this works however causes a flicker when updated.
CurrentAlbumArt = new BitmapImage();
CurrentAlbumArt.BeginInit();
CurrentAlbumArt.UriSource = new Uri((currentDevice as AUDIO).AlbumArt);
CurrentAlbumArt.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
CurrentAlbumArt.EndInit();
If I don't set IgnoreImageCache, the image does not update thus no
flickering either.
Is there a way around this caveat?
Cheers.

No comments:

Post a Comment