Class TBGRAWriterBmpMioMap

Unit

Declaration

type TBGRAWriterBmpMioMap = class(TFPCustomImageWriter)

Description

Extends the TFPCustomImageWriter to write the BMP MioMap (iGO) image format

Hierarchy

Overview

Fields

Protected FChunks: array of TMemoryStream;
Protected FCurrentChunk: TMemoryStream;
Protected FHeader: TMioHeader;
Protected FMaxChunkSize: Word;
Protected FPalette: packed of record ColorValue: Word; AlphaValue: Byte; Padding: Byte; end;
Protected FPaletteAlpha: boolean;
Protected FPaletteIndexes: packed[0..65535] of Int32or64;
Protected FPaletteOffset: Int32or64;

Methods

Public constructor Create; override;
Protected function IndexOfColor(const AColor: TBGRAPixel): Int32or64;
Protected procedure AppendToChunks(const Buffer; Count: integer);
Protected procedure BuildPaletteAndChunks(Img: TFPCustomImage);
Protected procedure FlushChunk;
Protected procedure FreeChunks;
Protected procedure InitChunks;
Protected procedure InitHeader(Img: TFPCustomImage);
Protected procedure InitPalette;
Protected procedure InternalWrite(Str: TStream; Img: TFPCustomImage); override;
Protected procedure NeedChunk;
Protected procedure ReadScanline(Img: TFPCustomImage; Y: integer; ADest: PBGRAPixel);
Protected procedure WriteChunks(Str: TStream);
Protected procedure WriteHeader(Str: TStream);
Protected procedure WritePalette(Str: TStream);

Properties

Public property MaxChunkSize: Word read FMaxChunkSize write FMaxChunkSize;

Description

Fields

Protected FChunks: array of TMemoryStream;

This item has no description.

Protected FCurrentChunk: TMemoryStream;

This item has no description.

Protected FHeader: TMioHeader;

This item has no description.

Protected FMaxChunkSize: Word;

This item has no description.

Protected FPalette: packed of record ColorValue: Word; AlphaValue: Byte; Padding: Byte; end;

This item has no description.

Protected FPaletteAlpha: boolean;

This item has no description.

Protected FPaletteIndexes: packed[0..65535] of Int32or64;

This item has no description.

Protected FPaletteOffset: Int32or64;

This item has no description.

Methods

Public constructor Create; override;

Creates the writer

Protected function IndexOfColor(const AColor: TBGRAPixel): Int32or64;

This item has no description.

Protected procedure AppendToChunks(const Buffer; Count: integer);

This item has no description.

Protected procedure BuildPaletteAndChunks(Img: TFPCustomImage);

This item has no description.

Protected procedure FlushChunk;

This item has no description.

Protected procedure FreeChunks;

This item has no description.

Protected procedure InitChunks;

This item has no description.

Protected procedure InitHeader(Img: TFPCustomImage);

This item has no description.

Protected procedure InitPalette;

This item has no description.

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

This item has no description.

Protected procedure NeedChunk;

This item has no description.

Protected procedure ReadScanline(Img: TFPCustomImage; Y: integer; ADest: PBGRAPixel);

This item has no description.

Protected procedure WriteChunks(Str: TStream);

This item has no description.

Protected procedure WriteHeader(Str: TStream);

This item has no description.

Protected procedure WritePalette(Str: TStream);

This item has no description.

Properties

Public property MaxChunkSize: Word read FMaxChunkSize write FMaxChunkSize;

Maximum size for data chunks (by default 254 but this can be increased)