Class TAdGraphicFormat

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdGraphicFormat = class(TAdPersistent)

Description

The abstract TAdGraphicFormat class should be used to load various graphic classes into a TAdBitmap.

Hierarchy

Overview

Methods

Public class procedure FileExts(strs:TStrings); virtual; abstract;
Public class function SupportsObject(AObj:TObject):boolean; virtual; abstract;
Public function LoadFromFile(ABitmap:TAdBitmap; AFile:string; ATransparent:Boolean; ATransparentColor:LongInt):boolean; virtual; abstract;
Public function Assign(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract;
Public function AssignTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract;
Public function AssignAlphaChannel(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract;
Public function AssignAlphaChannelTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract;

Description

Methods

Public class procedure FileExts(strs:TStrings); virtual; abstract;

This class procedure writes all file extensions the format can load into a string list. All extensions have to be written in lower case.

Public class function SupportsObject(AObj:TObject):boolean; virtual; abstract;

This class function should return true if the loader can handle the object specified by "AObj".

Public function LoadFromFile(ABitmap:TAdBitmap; AFile:string; ATransparent:Boolean; ATransparentColor:LongInt):boolean; virtual; abstract;

This abstract function should be used to load a file (wich has a file extension specified by the FileExts procedute) into the bitmap data.

Public function Assign(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract;

This function should be used to copy the graphics data of the specified object as good as possible into the TAdBitmap.

Public function AssignTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract;

This function should be used to copy the bitmap data of the specified object as good as possible into the specified graphic object.

Public function AssignAlphaChannel(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract;

This function should be used to copy the alpha channel of the specified object into the TAdBitmap. If the specified graphic does not contain an alphachannel, a RGB mixture value should be used.

Public function AssignAlphaChannelTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract;

This function should be used to copy the bitmaps alpha channel into the specified graphic object. If the graphic object isn't able to handle alpha channels, the alpha channel sould be copied as a mixture of RGB values into the graphic.

SourceForge.net Logo


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