ImageEn, unit imageenview

TIEBrushToolInteraction.BrushShape

TIEBrushToolInteraction.BrushShape


Declaration


property Brush: TIECursorShape;


Description


Specifies the shape of the brush.
If iecsDefault is specified, iecsCircle will be used, except when BrushShape is iebfImage

Default: iecsDefault


Examples


// Enable painting with a circular spray can brush
ImageEnView1.BrushTool.BrushShape := iecsCircle;
ImageEnView1.BrushTool.BrushFill := iebfSpray;
ImageEnView1.BrushTool.BrushSize := 50;
ImageEnView1.BrushTool.BrushColor := clRed;
ImageEnView1.MouseInteract := [ miBrushTool ];

// Enable painting with a square custom brush
ImageEnView1.BrushTool.BrushImage.Read( 'C:\MyBrush.png' );
ImageEnView1.BrushTool.BrushFill := iebfImage;
ImageEnView1.BrushTool.BrushShape := iecsRectangle;
ImageEnView1.MouseInteract := [ miBrushTool ];

// Enable painting with a round custom brush
ImageEnView1.BrushTool.BrushImage.Read( 'C:\MyBrush.png' );
ImageEnView1.BrushTool.BrushFill := iebfImage;
ImageEnView1.BrushTool.BrushShape := iecsCircle;
ImageEnView1.MouseInteract := [ miBrushTool ];

// Set cursor as a square eraser
ImageEnView1.BrushTool.BrushFill := iebfEraser;
ImageEnView1.BrushTool.EraserOpacity := 1.0;
ImageEnView1.BrushTool.BrushShape := iecsRectangle;
ImageEnView1.MouseInteract := [ miBrushTool ];