Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to clear a WriteableBitmap?

$
0
0

Hello all. Is there a fast way to clear (zero-out) the pixels in a WriteableBitmap...something like WriteableBitmap.Clear()? I don't see anything in the docs. Currently I'm copying in a large array of zeros to do this and it seems a little clunky. Thanks in advance.

L


Viewing all articles
Browse latest Browse all 18858

Trending Articles