ImageEn, unit imageenview |
|
TImageEnView.FillTool
Declaration
property FillTool: TIEFillToolInteraction;
Description
Provides access to the properties of the
TIEFillToolInteraction class, which is used when color filling using
MouseInteractGeneral=
miColorFill or alpha filling using
MouseInteractGeneral=
miAlphaFill.
The Fill tool allows the user to click the image to flood fill an area of color with a new color or alpha transparency.
Demo
| Demos\ImageEditing\FillTool\FillTool.dpr |
Examples
// Fill clicked areas with red
ImageEnView1.FillTool.ColorFillValue := clRed;
ImageEnView1.MouseInteractGeneral := [miColorFill];
// Fill clicked areas with full transparency
ImageEnView1.FillTool.AlphaFillValue := 0;
ImageEnView1.MouseInteractGeneral := [miAlphaFill];
// Fill clicked areas with 50% transparency
ImageEnView1.FillTool.AlphaFillValue := 128;
ImageEnView1.MouseInteractGeneral := [miAlphaFill];