Description | Hierarchy | Fields | Methods | Properties |
type TAdPen = class(TObject)
A class which defines the settings of the outer line of a canvas object.
constructor Create; |
|
procedure SaveToStream(AStream:TStream); |
|
procedure LoadFromStream(AStream:TStream); |
|
procedure Assign(APen:TAdPen); |
|
function EqualTo(APen:TAdPen):Boolean; |
property Color: TAndorraColor read FColor write SetColor; |
|
property Width: single read FWidth write SetWidth; |
|
property Texture: TAd2dTexture read FTexture write SetTexture; |
|
property TextureMode: TAdCanvasTextureMode read FTextureMode write FTextureMode; |
|
property TexturePosition: TAdCanvasTexturePosition read FTexturePosition write FTexturePosition; |
|
property PenPosition: TAdPenPosition read FPenPosition write FPenPosition; |
|
property Style: TAdPenStyle read FStyle write SetStyle; |
|
property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode; |
constructor Create; |
|
Creates an instance of TAdPen. |
procedure SaveToStream(AStream:TStream); |
|
Saves the pen data to a stream. |
procedure LoadFromStream(AStream:TStream); |
|
Loads the pen data from a stream. |
procedure Assign(APen:TAdPen); |
|
Assigns the pen data to another pen using LoadFromStream/SaveToStream and a temporary TMemoryStream. |
function EqualTo(APen:TAdPen):Boolean; |
|
Tests if the pen is equal to another pen. |
property Color: TAndorraColor read FColor write SetColor; |
|
Defines the color of the line. |
property Width: single read FWidth write SetWidth; |
|
Sets the width of the line. Accepts a equal or greater one. |
property Texture: TAd2dTexture read FTexture write SetTexture; |
|
Defines a texture the line is filled with. The texture is only used when width is greater one. Please notice, that the textures have to have a power of two size our you'll receive gaps between the texture boundaries. |
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 PenPosition: TAdPenPosition read FPenPosition write FPenPosition; |
|
Sets the position of the pen. See also
|
property Style: TAdPenStyle read FStyle write SetStyle; |
|
Sets the style of the pen. See also
|
property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode; |
|
Sets the mode the line is blended in. |