Class TAdResourceImage

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdResourceImage = class(TObject)

Description

A simple image, which may be stored in components.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdDraw);
Public destructor Destroy; override;
Public procedure LoadFromFile(AFile:string;ATransparent:boolean;ATransparentColor:LongInt);
Public procedure LoadFromGraphic(AGraphic:TGraphic);
Public procedure Draw(X,Y:integer);
Public procedure LoadFromString(AString: String);
Public function SaveToString: String;
Public procedure LoadFromStream(AStream:TStream);
Public procedure SaveToStream(AStream:TStream);

Properties

Public property Picture: TAdImage read FImage;
Public property Transparent: boolean read FTransparent write SetTransparent;
Public property TransparentColor: TColor read FTransparentColor write SetTransparentColor;
Public property Parent: TAdDraw read FParent;
Public property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor;
Public property Loaded: boolean read GetLoaded;

Description

Methods

Public constructor Create(AParent:TAdDraw);

Creates an instance of TAdResourceImage.

Public destructor Destroy; override;

Destroys the instance of TAdResourceImage.

Public procedure LoadFromFile(AFile:string;ATransparent:boolean;ATransparentColor:LongInt);

Loads the image from the specified file.

Public procedure LoadFromGraphic(AGraphic:TGraphic);

Loads the image from the specified graphic.

Public procedure Draw(X,Y:integer);

Draws the image somewhere on the screen

Public procedure LoadFromString(AString: String);

Loads the picture data from a string

Public function SaveToString: String;

Saves the picture data to a string

Public procedure LoadFromStream(AStream:TStream);

Loads the picture data from a stream.

Public procedure SaveToStream(AStream:TStream);

Saves the picture data to a stream.

Properties

Public property Picture: TAdImage read FImage;

Link to the internal used TAdImage

Public property Transparent: boolean read FTransparent write SetTransparent;

Toggles whether the transparent color is used.

Public property TransparentColor: TColor read FTransparentColor write SetTransparentColor;

Set the transparent color here. Transparent will automaticly set to "true" when using it.

Public property Parent: TAdDraw read FParent;

Link to the parent TAdDraw.

Public property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor;

The compressor which should be used to compress the picture.

Public property Loaded: boolean read GetLoaded;

Returns whether the picture is loaded.

SourceForge.net Logo


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