Description | Hierarchy | Fields | Methods | Properties |
type TAdBrush = class(TObject)
Class which defines the look of the brush of the canvas. The brush is used to define the filling of a object.
constructor Create; |
|
procedure SaveToStream(AStream:TStream); |
|
procedure LoadFromStream(AStream:TStream); |
|
procedure Assign(ABrush:TAdBrush); |
|
function EqualTo(ABrush:TAdBrush):Boolean; |
property Color: TAndorraColor read FColor write SetColor; |
|
property GradientColor: TAndorraColor read FGradientColor write SetGradientColor; |
|
property GradientDirecton: TAdCanvasGradientDirection read FGradientDirection write SetGradientDirection; |
|
property Style: TAdBrushStyle read FStyle write SetStyle; |
|
property Texture: TAd2dTexture read FTexture write SetTexture; |
|
property TextureMode: TAdCanvasTextureMode read FTextureMode write FTextureMode; |
|
property TexturePosition: TAdCanvasTexturePosition read FTexturePosition write FTexturePosition; |
|
property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode; |
constructor Create; |
|
Creates an instance of TAdBrush. |
procedure SaveToStream(AStream:TStream); |
|
Saves the settings of TAdBrush to a stream. |
procedure LoadFromStream(AStream:TStream); |
|
Loads the settings of TAdBrush from a stream. |
procedure Assign(ABrush:TAdBrush); |
|
Assigns the settings to another brush using Load/SaveToStream and TMemoryStream. |
function EqualTo(ABrush:TAdBrush):Boolean; |
|
Test if this brush is equal to another brush. |
property Color: TAndorraColor read FColor write SetColor; |
|
Defines the first color of the object. This color is used for the solid and the gradient mode. Changing this color will cause TAdBrush to set the brush style to "abSolid". See also
|
property GradientColor: TAndorraColor read FGradientColor write SetGradientColor; |
|
Defines the second color of the object. This color is used for the gradient fill mode. Changing this color will cause TAdBrush to set the brush style to "abGradient". See also
|
property GradientDirecton: TAdCanvasGradientDirection read FGradientDirection write SetGradientDirection; |
|
Defines the direction of the gradient. Changing this mode will cause TAdBrush in set the brush style to "abGradient". |
property Style: TAdBrushStyle read FStyle write SetStyle; |
|
Defines the style of the brush. See also
|
property Texture: TAd2dTexture read FTexture write SetTexture; |
|
Set a texture for filling the brush. You can recive a TAd2dTexture via TAdImage.Texture.Texture. Please notice, that the textures have to have a power of two size. |
property TextureMode: TAdCanvasTextureMode read FTextureMode write FTextureMode; |
|
Sets the texture mode. See also
|
property TexturePosition: TAdCanvasTexturePosition read FTexturePosition write FTexturePosition; |
|
Sets the position of the texture. See also
|
property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode; |
|
Sets the mode the filling of the object is drawn in. |