ImageEn, unit iexUserInteractions |
|
TIEBrushToolInteraction.BrushImageSizeLocked
Declaration
property BrushImageSizeLocked: Boolean;
Description
Specifies whether to use the whole
BrushImage for the brush, or a portion of it.
When
BrushImageSizeLocked = True (Default) then
BrushSize is ignored, and the entire
BrushImage is used.
When
BrushImageSizeLocked = False, then a portion of
BrushImage is used at the size of
BrushSize.
Note: If
BrushImageSizeLocked = False and the
BrushImage is smaller than the
BrushSize value, then
BrushSize is ignored
Default: True
// Use an image as a source brush that can be sized (note cannot be made larger than the source image)
ImageEnView1.BrushTool.BrushImage.Read( 'C:\CustomBrush.png' );
ImageEnView1.BrushTool.BrushFill := iebfImage;
ImageEnView1.BrushTool.BrushImageSizeLocked := False;
ImageEnView1.BrushTool.BrushSize := 10;
ImageEnView1.MouseInteractGeneral := [ miBrushTool ]