0
我將Image
的Source
設置爲WriteableBitmap
,我正在使用其PixelBuffer
填充WriteableBitmap
。我第一次寫信給它,它就起作用了。但後來的寫入被忽略。爲什麼?WriteableBitmap只能寫入一次嗎?
我使用:
Stream s = myWriteableBitmap.PixelBuffer.AsStream()
(很using
,我沒有得到任何的異常。)
您是否嘗試過[在您的位圖上調用* Invalidate *](http://stackoverflow.com/a/40407297/2681948)? – Romasz
@Romasz完美!你可以把它轉換成答案。 – ispiro