ImageEn, unit imageenview

TIEBrushToolInteraction.EraserOpacity

TIEBrushToolInteraction.EraserOpacity


Declaration


property EraserOpacity: Double;


Description


Specify the percentage that the brush will erase content if BrushFill is iebfEraser.
1.0 will completely erase (Alpha will become 0), whereas 0.5 would set pixels of Alpha 255 to 128.



Default: 1.0


Example


// Set cursor as an eraser
ImageEnView1.BrushTool.BrushFill := iebfEraser;
ImageEnView1.BrushTool.EraserOpacity := 1.0;
ImageEnView1.MouseInteract := [ miBrushTool ];

// Erase at 50% transparency
ImageEnView1.BrushTool.EraserOpacity := 0.5;


See Also


- Transparency