Change bitmap color at runtime in WPF

i develop in WPF. I have a black bitmap and i want to change color to white at runtime !

Upvotes: 0

Views: 1016

Answers (1)

Chris Sinclair
Chris Sinclair

Reputation: 23208

If you use the WriteableBitmapExtensions it's pretty easy.

using WriteableBitmapEx;

...

myBitmap.Clear(System.Windows.Media.Colors.White);

Upvotes: 1

Related Questions