Description | Hierarchy | Fields | Methods | Properties |
type TAdImageList = class(TAdList)
A list of TAdImage objects. The whole image list can be saved and loaded from a single file. To create such an imagelist file you can use the tool "imgedit".
![]() |
constructor Create(AAdDraw:TAdDraw); |
![]() |
destructor Destroy; override; |
![]() |
function Add(AName: AnsiString):TAdImage; overload; |
![]() |
function IndexOf(AName: AnsiString):integer; |
![]() |
function Find(AName: AnsiString):TAdImage; |
![]() |
function FindEx(ASubStr: AnsiString):TAdImageList; |
![]() |
procedure Restore; |
![]() |
procedure SaveToStream(AStream:TStream); |
![]() |
procedure LoadFromStream(AStream:TStream); |
![]() |
procedure SaveToFile(AFile:string); |
![]() |
procedure LoadFromFile(AFile:string); |
![]() |
property Items[AIndex:integer]: TAdImage read GetItem write SetItem; |
![]() |
property Parent: TAdDraw read FParent; |
![]() |
property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor; |
![]() |
property Filter: TAd2dTextureFilter read FFilter write SetFilter; |
![]() |
constructor Create(AAdDraw:TAdDraw); |
Creates a new instance of TAdImageList. |
![]() |
destructor Destroy; override; |
Frees the instance of TAdImageList. Images that were created by the imagelist are freed too. See also
|
![]() |
function Add(AName: AnsiString):TAdImage; overload; |
Creates and adds a new image item to the list. This item will automatically freed by the list. See also
|
![]() |
function IndexOf(AName: AnsiString):integer; |
Searches for an item by name and returns its index. |
![]() |
function Find(AName: AnsiString):TAdImage; |
Finds an image in the list by its name. |
![]() |
function FindEx(ASubStr: AnsiString):TAdImageList; |
Returns a new imagelist, that contains all images containing the given substring. The returned imagelist has to be freed manually. |
![]() |
procedure Restore; |
Calls the restore function of every item in the list. |
![]() |
procedure SaveToStream(AStream:TStream); |
Save the whole list to a stream. |
![]() |
procedure LoadFromStream(AStream:TStream); |
Load a whole list from a stream. |
![]() |
procedure SaveToFile(AFile:string); |
Saves the whole list to a file. |
![]() |
procedure LoadFromFile(AFile:string); |
Loads a whole list from a file. |
![]() |
property Items[AIndex:integer]: TAdImage read GetItem write SetItem; |
Returns an image item to you. |
![]() |
property Parent: TAdDraw read FParent; |
The parent TAdDraw you've specified in the constructor. |
![]() |
property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor; |
Apply the same graphic compressor class to each item in the list. |
![]() |
property Filter: TAd2dTextureFilter read FFilter write SetFilter; |
Texture filter that should be applied to all images in the list. By setting this property, the filter property of all image items is overwritten. |