2016-11-06 74 views
0

我將ImageSource設置爲WriteableBitmap,我正在使用其PixelBuffer填充WriteableBitmap。我第一次寫信給它,它就起作用了。但後來的寫入被忽略。爲什麼?WriteableBitmap只能寫入一次嗎?

我使用:

Stream s = myWriteableBitmap.PixelBuffer.AsStream() 

(很using,我沒有得到任何的異常。)

+0

您是否嘗試過[在您的位圖上調用* Invalidate *](http://stackoverflow.com/a/40407297/2681948)? – Romasz

+0

@Romasz完美!你可以把它轉換成答案。 – ispiro

回答