Wednesday, June 01, 2011 1:55 AM
WPF InteropBitmap can be created from shared memory, i.e.
In this case, we can update shared memory in another thread or process, and then after updating, calling InteropBitmap.Invalidate() to present the changes.
So, how do I sync writing and reading of WPF InteropBitmap?
- Updating occurs in user's thread.
- Reading always occurs in WPF internal render thread via IWICBitmapSource::CopyPixels
Friday, June 03, 2011 7:05 AMModerator
Hi Chang Chen,
No I am afraid there is not such a straightforward way to make synchronization of InteropBitmap in WPF. The possible workaround may be converting the InteropBitmap to WritableBitmap which has a Lock method. Please kindly check if this could meet your requirements.
Yves Zhang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Yves.ZModerator Monday, June 13, 2011 9:53 PM