Description | Hierarchy | Fields | Methods | Properties |
type TAdGraphicCompressor = class(TAdPersistent)
TAdGraphicCompressor is an abstract class, which allows to save bitmap data using different encoding and compressing technologies.
procedure Write(ABitmap:TAdBitmap; AStream:TStream); virtual; abstract; |
|
procedure Read(ABitmap:TAdBitmap; AStream:TStream); virtual; abstract; |
|
class function ID:TAdVeryShortString; virtual; abstract; |
property OnProgress: TAdGraphicProgress read FProgress write FProgress; |
procedure Write(ABitmap:TAdBitmap; AStream:TStream); virtual; abstract; |
|
This should be used to write the bitmap data into the specified stream. The compressor ID is automaticly written by the caller of the procedure. |
procedure Read(ABitmap:TAdBitmap; AStream:TStream); virtual; abstract; |
|
This should be used to read the bitmap data from the specified stream. The compressor ID has already be read by the caller of the procedure. |
class function ID:TAdVeryShortString; virtual; abstract; |
|
This class function should be used to return a unique ID, which specifies the compressor. |
property OnProgress: TAdGraphicProgress read FProgress write FProgress; |
|
This event should be called to show the progress of encoding/decoding the bitmap data |