2

I'm using the Image control to display an 8-bit grayscale image that I process myself on a background thread. Once the image is processed, I set the Image.BitmapSource property to point to a new bitmap I create via BitmapSource.Create(). This is all well and good - until I have to rapidly reprocess the image and throw it back on screen.

The project that I'm working on requires that I be able to reprocess and refresh the image at ~15-20 FPS. I can get images to the UI that fast - that isn't the problem. The problem is the display flickers in an unpleasant way. I'd like to avoid this.

Pre-WPF versions of my project relied on GDI to do this and were able to handle it without the flickering. I'd prefer to not use GDI (or GDI+).

Is there a more efficient WPF-way of doing this?

Rob
  • 25,984
  • 32
  • 109
  • 155
  • I voted to close this as an exact duplicate, Scott pointed out a very similar question. Feel free to vote to close as a duplicate, thanks! – Rob May 21 '09 at 15:12
  • You can delete your own questions without having them closed you know – ChrisF May 21 '09 at 15:15
  • @ChrisF, it's telling me there are too many existing answers to delete. – Rob May 21 '09 at 15:55

1 Answers1

2

I think question has been asked before, here.

Community
  • 1
  • 1
Scott
  • 850
  • 7
  • 13