Class TBGRAWriterLazPaint

Unit

Declaration

type TBGRAWriterLazPaint = class(TFPCustomImageWriter)

Description

Extends the TFPCustomImageWriter to write LazPaint image format

Hierarchy

Overview

Fields

Public Caption: string;
Protected CompressionMode: LongWord;

Methods

Public constructor Create; override;
Protected function GetNbLayers: integer; virtual;
Protected function InternalWriteLayers(Str: TStream; Img: TFPCustomImage): boolean; virtual;
Public class procedure WriteRLEImage(Str: TStream; Img: TFPCustomImage; ACaption: string= ''); static;
Protected procedure InternalWrite(Str: TStream; Img: TFPCustomImage); override;

Properties

Public property Compression: TLzpCompression read GetCompression write SetCompression;
Public property IncludeThumbnail: boolean read GetIncludeThumbnail write SetIncludeThumbnail;

Description

Fields

Public Caption: string;

Caption to store in the file

Protected CompressionMode: LongWord;

Flags for the compression options

Methods

Public constructor Create; override;

Create the writer

Protected function GetNbLayers: integer; virtual;

This item has no description.

Protected function InternalWriteLayers(Str: TStream; Img: TFPCustomImage): boolean; virtual;

This item has no description.

Public class procedure WriteRLEImage(Str: TStream; Img: TFPCustomImage; ACaption: string= ''); static;

Static function to write LazPaint RLE image data into a stream

Protected procedure InternalWrite(Str: TStream; Img: TFPCustomImage); override;

This item has no description.

Properties

Public property Compression: TLzpCompression read GetCompression write SetCompression;

Property to specify the compression to use

Public property IncludeThumbnail: boolean read GetIncludeThumbnail write SetIncludeThumbnail;

Specify to include a thumbnail or not