| ImageEn, unit iexUserInteractions |
|
TIEFillToolInteraction.ColorFillAlpha
Declaration
property ColorFillAlpha: Integer;
Description
Specifies the Alpha to apply when flood filling with a
color.
By default, ColorFillAlpha is 255 so that flood fill makes all colored pixels fully opaque. Specify -1 to make no changes to the alpha channel.
Value is in the range 0: Fully Transparent - 255: Opaque, or -1 for no change.
Default: 255
Examples
// Fill clicked areas with blue (ensuring that painted pixels are made fully opaque)
ImageEnView1.FillTool.ColorFillValue := clBlue;
ImageEnView1.FillTool.ColorFillAlpha := 255;
ImageEnView1.FillTool.Tolerance := 128;
ImageEnView1.MouseInteractGeneral := [ miColorFill ];

// Fill clicked areas with white (without making any changes to the alpha channel)
ImageEnView1.FillTool.ColorFillValue := clWhite;
ImageEnView1.FillTool.ColorFillAlpha := -1;
ImageEnView1.FillTool.Tolerance := 20;
ImageEnView1.MouseInteractGeneral := [ miColorFill ];