Class TBGRAWriterPNG

Unit

Declaration

type TBGRAWriterPNG = class(TBGRACustomWriterPNG)

Description

Extends the TFPCustomImageWriter to write the PNG image format

Hierarchy

Overview

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Protected function ColorDataColorAB(color:TFPColor) : TColorData;
Protected function ColorDataColorAW(color:TFPColor) : TColorData;
Protected function ColorDataColorB(color:TFPColor) : TColorData;
Protected function ColorDataColorW(color:TFPColor) : TColorData;
Protected function ColorDataGrayAB(color:TFPColor) : TColorData;
Protected function ColorDataGrayAW(color:TFPColor) : TColorData;
Protected function ColorDataGrayB(color:TFPColor) : TColorData;
Protected function ColorDataGrayW(color:TFPColor) : TColorData;
Protected function CurrentLine(x:LongWord) : byte; inline;
Protected function DecideGetPixel: TGetPixelFunc; virtual;
Protected function DecideGetPixelBGRA: TGetPixelBGRAFunc; virtual;
Protected function DetermineFilter(Current, Previous:PByteArray; linelength:LongWord):byte; virtual;
Protected function DoFilter(LineFilter:byte;index:LongWord; b:byte) : byte; virtual;
Protected function GetUseAlpha: boolean; override;
Protected function PreviousLine(x:LongWord) : byte; inline;
Protected function PrevLinePrevSample(x:LongWord): byte; inline;
Protected function PrevSample(x:LongWord): byte; inline;
Public procedure AnimationWrite(AStream: TStream; AImage:TFPCustomImage; AAnimation: TPNGArrayOfFrameToWrite; ARepeatCount: integer = 0);
Protected procedure DetermineHeader(var AHeader : THeaderChunk); virtual;
Protected procedure FillScanLine(y : integer; ScanLine : pByteArray); virtual;
Protected procedure InternalWrite(Str:TStream; Img:TFPCustomImage); override;
Protected procedure SetChunkLength(aValue : LongWord);
Protected procedure SetChunkType(ct : TChunkTypes); overload;
Protected procedure SetChunkType(ct : TChunkCode); overload;
Protected procedure SetUseAlpha(AValue: boolean); override;
Protected procedure WriteacTL; virtual;
Protected procedure WritefcTL(AIndex: integer); virtual;
Protected procedure WritefdAT(AIndex: integer); virtual;
Protected procedure WriteIDAT; virtual;
Protected procedure WriteIEND; virtual;
Protected procedure WriteIHDR; virtual;
Protected procedure WriteImageData(AImage: TFPCustomImage; AImageDataChunkCode: TChunkCode); virtual;
Protected procedure WritePLTE; virtual;
Protected procedure WriteResolutionValues; virtual;
Protected procedure WriteTexts; virtual;
Protected procedure WritetRNS; virtual;

Properties

Protected property byteWidth : byte read FByteWidth;
Protected property ChunkDataBuffer : pByteArray read FChunk.data;
Protected property ColorFormat : TColorformat read CFmt;
Protected property ColorFormatFunc : TColorFormatFunction read FFmtColor;
Public property CompressedText : boolean read FCompressedText write FCompressedText;
Public property CompressionLevel : TCompressionLevel read FCompressionLevel write FCompressionLevel;
Public property CustomPalette: TFPPalette read FCustomPalette write FCustomPalette;
Protected property DatalineLength : LongWord read FDatalineLength;
Public property GrayScale : boolean read FGrayscale write FGrayScale;
Protected property Header : THeaderChunk read FHeader;
Public property Indexed : boolean read FIndexed write FIndexed;
Protected property SingleTransparentColor : TFPColor read FTransparentColor;
Protected property SingleTransparentColorOk : boolean read FTransparentColorOk;
Protected property ThePalette : TFPPalette read FPalette;
Protected property UsetRNS : boolean read FUsetRNS;
Public property WordSized : boolean read FWordSized write FWordSized;

Description

Methods

Public constructor Create; override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Protected function ColorDataColorAB(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataColorAW(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataColorB(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataColorW(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataGrayAB(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataGrayAW(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataGrayB(color:TFPColor) : TColorData;

This item has no description.

Protected function ColorDataGrayW(color:TFPColor) : TColorData;

This item has no description.

Protected function CurrentLine(x:LongWord) : byte; inline;

This item has no description.

Protected function DecideGetPixel: TGetPixelFunc; virtual;

This item has no description.

Protected function DecideGetPixelBGRA: TGetPixelBGRAFunc; virtual;

This item has no description.

Protected function DetermineFilter(Current, Previous:PByteArray; linelength:LongWord):byte; virtual;

This item has no description.

Protected function DoFilter(LineFilter:byte;index:LongWord; b:byte) : byte; virtual;

This item has no description.

Protected function GetUseAlpha: boolean; override;

This item has no description. Showing description inherited from TBGRACustomWriterPNG.GetUseAlpha.

Gets whether or not to use the alpha channel

Protected function PreviousLine(x:LongWord) : byte; inline;

This item has no description.

Protected function PrevLinePrevSample(x:LongWord): byte; inline;

This item has no description.

Protected function PrevSample(x:LongWord): byte; inline;

This item has no description.

Public procedure AnimationWrite(AStream: TStream; AImage:TFPCustomImage; AAnimation: TPNGArrayOfFrameToWrite; ARepeatCount: integer = 0);

This item has no description.

Protected procedure DetermineHeader(var AHeader : THeaderChunk); virtual;

This item has no description.

Protected procedure FillScanLine(y : integer; ScanLine : pByteArray); virtual;

This item has no description.

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

This item has no description.

Protected procedure SetChunkLength(aValue : LongWord);

This item has no description.

Protected procedure SetChunkType(ct : TChunkTypes); overload;

This item has no description.

Protected procedure SetChunkType(ct : TChunkCode); overload;

This item has no description.

Protected procedure SetUseAlpha(AValue: boolean); override;

This item has no description. Showing description inherited from TBGRACustomWriterPNG.SetUseAlpha.

Sets whether or not to use the alpha channel

Protected procedure WriteacTL; virtual;

This item has no description.

Protected procedure WritefcTL(AIndex: integer); virtual;

This item has no description.

Protected procedure WritefdAT(AIndex: integer); virtual;

This item has no description.

Protected procedure WriteIDAT; virtual;

This item has no description.

Protected procedure WriteIEND; virtual;

This item has no description.

Protected procedure WriteIHDR; virtual;

This item has no description.

Protected procedure WriteImageData(AImage: TFPCustomImage; AImageDataChunkCode: TChunkCode); virtual;

This item has no description.

Protected procedure WritePLTE; virtual;

This item has no description.

Protected procedure WriteResolutionValues; virtual;

This item has no description.

Protected procedure WriteTexts; virtual;

This item has no description.

Protected procedure WritetRNS; virtual;

This item has no description.

Properties

Protected property byteWidth : byte read FByteWidth;

This item has no description.

Protected property ChunkDataBuffer : pByteArray read FChunk.data;

This item has no description.

Protected property ColorFormat : TColorformat read CFmt;

This item has no description.

Protected property ColorFormatFunc : TColorFormatFunction read FFmtColor;

This item has no description.

Public property CompressedText : boolean read FCompressedText write FCompressedText;

This item has no description.

Public property CompressionLevel : TCompressionLevel read FCompressionLevel write FCompressionLevel;

This item has no description.

Public property CustomPalette: TFPPalette read FCustomPalette write FCustomPalette;

This item has no description.

Protected property DatalineLength : LongWord read FDatalineLength;

This item has no description.

Public property GrayScale : boolean read FGrayscale write FGrayScale;

loop count (0 for infinite loop)

Protected property Header : THeaderChunk read FHeader;

This item has no description.

Public property Indexed : boolean read FIndexed write FIndexed;

This item has no description.

Protected property SingleTransparentColor : TFPColor read FTransparentColor;

This item has no description.

Protected property SingleTransparentColorOk : boolean read FTransparentColorOk;

This item has no description.

Protected property ThePalette : TFPPalette read FPalette;

This item has no description.

Protected property UsetRNS : boolean read FUsetRNS;

This item has no description.

Public property WordSized : boolean read FWordSized write FWordSized;

This item has no description.