Class TAdImage

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdImage = class(TAdCustomImage)

Description

A image class that contains a bitmap texture. The TAdImageList contains a set of TAdImages.

Hierarchy

Overview

Fields

Public FreeByList:TAdImageList;

Methods

Public constructor Create(AAdDraw:TAdDraw); override;
Public procedure Assign(AItem:TAdImage);
Public procedure SaveToStream(AStream:TStream);
Public procedure LoadFromStream(AStream:TStream);
Public procedure SaveToFile(AFile:string);
Public procedure LoadFromFile(AFile:string);

Properties

Public property Name: AnsiString read FName write FName;
Public property Texture: TAdTexture read GetTexture write SetTexture;

Description

Fields

Public FreeByList:TAdImageList;

Contains a pointer to the image list which created the image. Set to nil if you don't want the image to be freed by the ImageList.

Methods

Public constructor Create(AAdDraw:TAdDraw); override;
 
Public procedure Assign(AItem:TAdImage);

Assings the settings of another item.

Public procedure SaveToStream(AStream:TStream);

Saves the image and all settings to a stream.

Public procedure LoadFromStream(AStream:TStream);

Loads the image and all settings from a stream.

Public procedure SaveToFile(AFile:string);

Saves the image data to a file. This function save the data in a Andorra 2D internal file format.

Public procedure LoadFromFile(AFile:string);

Loads the image data from a file. This function save the data in a Andorra 2D internal file format.

Properties

Public property Name: AnsiString read FName write FName;

Name of the image in the imagelist. The find procedure of the imagelist uses this property.

Public property Texture: TAdTexture read GetTexture write SetTexture;

Access to the texture abstraction layer.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59