Unit AdBitmap

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

This unit contains a improved bitmap, which may load data from different picture sources and gives the possibility of easy pixel access.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class ENoValidCompressor This exception is raised when no proper compressor is found to load the bitmap data from a stream or a file
Class ENoValidFormat This exception is raised when no format loader is found to load the bitmap data from the specified data source.
Class TAdGraphicCompressor TAdGraphicCompressor is an abstract class, which allows to save bitmap data using different encoding and compressing technologies.
Class TAdGraphicFormat The abstract TAdGraphicFormat class should be used to load various graphic classes into a TAdBitmap.
Class TAdBitmap TAdBitmap is the main bitmap class

Functions and Procedures

procedure RegisterGraphicCompressor(AClass:TAdGraphicCompressorClass);
procedure RegisterGraphicFormat(AClass:TAdGraphicFormatClass);

Types

TAdGraphicProgress = procedure(Sender:TObject; AMax, AValue:integer) of object;
TAdGraphicCompressorClass = class of TAdGraphicCompressor;
TAdGraphicFormatClass = class of TAdGraphicFormat;

Variables

RegisteredGraphicCompressors:TStringList;
RegisteredGraphicFormats:TStringList;

Description

Functions and Procedures

procedure RegisterGraphicCompressor(AClass:TAdGraphicCompressorClass);

Use this procedure in the initialization part of a unit to register a graphic compressor class.

procedure RegisterGraphicFormat(AClass:TAdGraphicFormatClass);

Use this procedure in the initialization part of a unit to register a graphic format class.

Types

TAdGraphicProgress = procedure(Sender:TObject; AMax, AValue:integer) of object;

A method type declaration for showing the decoding/encoding progress of a bitmap

TAdGraphicCompressorClass = class of TAdGraphicCompressor;

A class declaration of TAdGraphicCompressor.

TAdGraphicFormatClass = class of TAdGraphicFormat;

A class declaration of TAdGrahpicFormat.

Variables

RegisteredGraphicCompressors:TStringList;

This stringlist contains the names and ids of all registered graphic compressors

RegisteredGraphicFormats:TStringList;

This stringlist contains the names of all registered graphic formats. It can be used by editors to let the user know which graphic formats are supported. Do not change anything in this stringlist manually!

SourceForge.net Logo


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