Is there a way to use Canvas.FloodFill in D2007 to fill a custom shaped object with gradient colors. Going from white to a border color. I couldn't google out anything useful.
Or just any other way of filling a custom shaped object with gradient colors?
Thank you.
I don't think so.
Floodfill takes uses whatever the current brush color is set to, you can't change it during the flood fill.
You could however use floodfill to set the color to something not already in the image, then loop over the pixels, check for that color of the pixel, and do a gradient fill that way. That would take care of the boundary detection for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With