writeablebitmap

Edit raw pixel data of WriteableBitmap?

房东的猫 提交于 2019-11-26 09:52:50
问题 Is it possible to directly read/write to a WriteableBitmap\'s pixel data? I\'m currently using WriteableBitmapEx\'s SetPixel() but it\'s slow and I want to access the pixels directly without any overhead. I haven\'t used HTML5\'s canvas in a while, but if I recall correctly you could get its image data as a single array of numbers and that\'s kind of what I\'m looking for Thanks in advance 回答1: To answer your question, you can more directly access a writable bitmap's data by using the Lock ,