Home > Net >  Wpf image refresh image flicker
Wpf image refresh image flicker

Time:11-08

Image binding viewmodel properties and then according to the result of images to update the flash is serious excuse me how should solve

CodePudding user response:

If you change the binding source, UI elements will be deleted after the reconstruction, will certainly lead to flicker.

So we need to avoid change the binding source
In the viewmodel to set up a writeablebitmap
View the Image of binding to the writeablebitmap
Image content must be updated, the new content in the render to writeablebitmap

CodePudding user response:

reference 1st floor JDD1997 response:
if you change the binding source, the UI elements will be deleted after the reconstruction, will certainly lead to flicker.

So we need to avoid change the binding source
In the viewmodel to set up a writeablebitmap
View the Image of binding to the writeablebitmap
Image content must be updated, the new content in the render to writeablebitmap

ok I test

CodePudding user response:

Suggest don't automatically update pictures, this way is too expensive.
Such as program download 10 per second picture, that is about to refresh the 10 times, and that what is 10 times to refresh the user experience? Swish the past, and can't see the image details, so, you think about it, is there any necessary to real-time display these pictures.
Images can be downloaded file name for real-time update, will have better relatively, as a prompt to download process.

CodePudding user response:

reference weixin_41766621 reply: 3/f
Suggestions do not automatically update the pictures, this way is too expensive.
Such as program download 10 per second picture, that is about to refresh the 10 times, and that what is 10 times to refresh the user experience? Swish the past, and can't see the image details, so, you think about it, is there any necessary to real-time display these pictures.
Images can be downloaded file name for real-time update, will have better relatively, as a prompt to download process.

But we are refreshed camera images in real time

CodePudding user response:

Refresh the image on the thread loop, update the UI with entrust,

CodePudding user response:

reference 4 floor dloren_b response:
Quote: reference weixin_41766621 reply: 3/f
Suggestions do not automatically update the pictures, this way is too expensive.
Such as program download 10 per second picture, that is about to refresh the 10 times, and that what is 10 times to refresh the user experience? Swish the past, and can't see the image details, so, you think about it, is there any necessary to real-time display these pictures.
Images can be downloaded file name for real-time update, will have better relatively, as a prompt to download process.

But we are real-time refresh camera picture

Camera real time images should use video processing? Such amount of data processing hardware which can stand it, the algorithm of video streaming homemade with you a lot of a lot of this kind of algorithm performance is poor, and the resolution of the camera taking pictures at millions of pixels, and the resolution of the video frames if reach this level, normal computer can't handle.
  •  Tags:  
  • C#
  • Related