Delphi fill with gradient?

Is there a way to use Canvas.FloodFill in D2007 to populate a custom object with gradient colors. Transition from white to border color. I could not google anything useful.

Or any other way to populate a custom object with gradient colors?

Thank.

+3
source share
2 answers

I do not think so.

Floodfill accepts the use of any current brush color; you cannot change it during the fill fill.

However, you can use the fill to set the color to something else on the image, then iterate over the pixels, check that pixel color, and perform gradient fills this way. This will take care of finding boundaries for you.

+2
source

GDI +? Shapes (Pathes) - GDI+. Delphi-Wrappers GDI + :

:

http://www.bilsen.com/gdiplus/index.shtml

0

All Articles