开发者

Change pixels to fill with color in a WPF image

开发者 https://www.devze.com 2022-12-10 13:29 出处:网络
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 chang开发者_如何学Goe all

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 chang开发者_如何学Goe all the pixels with the same color near. Is there a simpler way?

What should I use? WriteableBitmap?

Thank you


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

0

精彩评论

暂无评论...
验证码 换一张
取 消