tags:

views:

40

answers:

1

I get new bitmap from some other component ( dont have any control on the other component ) every 5 seconds and i need to update my wpf image control with the new bitmap ( every 5 seconds ... ).

I cant find any way to update this wpf image control in run-time.

How can i do it ?

Thanks.

A: 

There is a another question like this http://stackoverflow.com/questions/350027/setting-wpf-image-source-in-code

the answer boils down to

ImgOnForm.Source = new BitmapImage(new Uri(@"/yourApp;component/img.png", UriKind.Relative));
JoshVarga