Artur Carvalho
Artur Carvalho

Reputation: 7167

Change pixels to fill with color in a WPF image

I'm trying to fill an area of an image in WPF. Something similar to the bucket in Paint. How should I do this? I'm thinking of getting the pixel color under the mouse, and change all the pixels with the same color near. Is there a simpler way?

What should I use? WriteableBitmap?

Thank you

Upvotes: 1

Views: 3259

Answers (1)

Drew Marsh
Drew Marsh

Reputation: 33379

Yes, WriteableBitmap is the best way to go on this one IMHO.

Upvotes: 2

Related Questions