What is fast approach to manipulate pixels in WritableBitmap (i also use WritableBitmapEx extensions)? SetPixel is very slow method for things like filling a background for my Paint-like application and also it does some weird things like memory corruption (don’t know why).
What is fast approach to manipulate pixels in WritableBitmap (i also use WritableBitmapEx extensions)?
Share
SetPixel very slow – it’s true.
You should use the LockBits method, and then iterate all pixels using unsafe code (pointers for pixels).
Example:
I suggest you read this article.