Description | Hierarchy | Fields | Methods | Properties |
type TAdTexture = class(TAdCustomTexture)
TAdTexture extends TAdCustomTexture and contains a bitmap texture. Those textures can be loaded and saved to and from files or streams. You're also able to assign other graphic objects to this class. To support other file types or compressors, you may write your own "format" or "compressor" class.
constructor Create(AParent:TAdDraw); override; |
|
destructor Destroy; override; |
|
procedure Clear; override; |
|
procedure Initialize; override; |
|
procedure Finalize; override; |
|
procedure LoadFromStream(AStream:TStream); |
|
procedure SaveToStream(AStream:TStream); |
|
procedure LoadFromFile(AFile:string); |
|
procedure SaveToFile(AFile:string); |
|
procedure LoadFromGraphic(AGraphic:TObject); |
|
procedure SaveToGraphic(AGraphic:TObject); |
|
procedure LoadGraphicFromFile(AFile: string; Transparent: boolean = true; TransparentColor: Longint = $1FFFFFFF); |
property Compressor: TAdGraphicCompressorClass read FCompressorClass
write FCompressorClass; |
|
property Texture: TAd2dBitmapTexture read GetTexture write SetTexture; |
constructor Create(AParent:TAdDraw); override; |
|
Creates a new instance of TAdTexture. |
destructor Destroy; override; |
|
Destroys the instance of TAdTexture. |
procedure Clear; override; |
|
procedure Initialize; override; |
|
procedure Finalize; override; |
|
procedure LoadFromStream(AStream:TStream); |
|
Loads the texture from a stream from the Andorra 2D internal file format. The data saved can be compressed using the so called "compressors". This alows game programers to save space and to protect their game data by using their own file format. See also
|
procedure SaveToStream(AStream:TStream); |
|
Saves the texture to a stream in the Andorra 2D internal file format. The data saved can be compressed using the so called "compressors". This alows game programers to save space and to protect their game data by using their own file format. See also
|
procedure LoadFromFile(AFile:string); |
|
Loads the texture from a file from the Andorra 2D internal file format. The data loaded can be compressed using the so called "compressors". This alows game programers to save space and to protect their game data by using their own file format. See also
|
procedure SaveToFile(AFile:string); |
|
Saves the texture to a file in the Andorra 2D internal file format. The data saved can be compressed using the so called "compressors". This alows game programers to save space and to protect their game data by using their own file format. See also
|
procedure LoadFromGraphic(AGraphic:TObject); |
|
Loads the graphic of the texture from another graphic object. Which graphic objects are supported depends on the formats that are bound in. Normally you can load your graphic from all VCL/LCL graphic objects. See also
|
procedure LoadGraphicFromFile(AFile: string; Transparent: boolean = true; TransparentColor: Longint = $1FFFFFFF); |
|
Loads the graphic from a file. Parameters
See also
|
property Compressor: TAdGraphicCompressorClass read FCompressorClass
write FCompressorClass; |
|
Specifies the compressor class that should be used when saving the image data. When loading an image, the compressor property is automatically set to the compressor class used in this file/stream. See also
|
property Texture: TAd2dBitmapTexture read GetTexture write SetTexture; |
|