Class TBGRAReaderPNG

Unit

Declaration

type TBGRAReaderPNG = class(TBGRAImageReader)

Description

Reader for PNG image format

Hierarchy

Overview

Fields

Protected Chunk: TChunk;
Protected DataBytes: TColorData;
Protected DataIndex: LongWord;
Protected EndOfFile: boolean;
Protected TransparentDataValue: TColorData;
Protected UseTransparent: boolean;
Protected UsingBitGroup: byte;

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Public function GetBitmapDraft(AStream: TStream; AMaxWidth, AMaxHeight: integer; out AOriginalWidth,AOriginalHeight: integer): TBGRACustomBitmap; override;
Public function GetQuickInfo(AStream: TStream): TQuickImageInfo; override;
Protected function CalcColor(const ScanLine : PByteArray): TColorData;
Protected function DecideSetPixel: TSetPixelProc; virtual;
Protected function InternalCheck(Str:TStream) : boolean; override;
Public procedure LoadFrame(AIndex: integer; AImage: TFPCustomImage);
Protected procedure AssignPalette;
Protected procedure AssignResolutionValues;
Protected procedure BGRAHandleScanLine(const y: integer; const ScanLine: PByteArray);
Protected procedure BGRAHandleScanLineTr(const y: integer; const ScanLine: PByteArray);
Protected procedure DoDecompress(ACompressedData: TStream; AWidth, AHeight: integer); virtual;
Protected procedure DoLoadImage(AImage: TFPCustomImage; AData: TStream; AWidth, AHeight: integer); virtual;
Protected procedure HandleAlpha; virtual;
Protected procedure HandleAnimationControl; virtual;
Protected procedure HandleChunk; virtual;
Protected procedure HandleData; virtual;
Protected procedure HandleFrameControl; virtual;
Protected procedure HandleFrameData; virtual;
Protected procedure HandleGamma; virtual;
Protected procedure HandlePalette; virtual;
Protected procedure HandlePhysicalDimensions; virtual;
Protected procedure HandleScanLine(const y : integer; const ScanLine : PByteArray); virtual;
Protected procedure HandleStdRGB; virtual;
Protected procedure HandleUnknown; virtual;
Protected procedure InternalRead(Str:TStream; Img:TFPCustomImage); override;
Protected procedure PredefinedResolutionValues; virtual;
Protected procedure SetBGRAColorPixel(x,y:integer; const CD : TColordata);
Protected procedure SetBGRAColorTrPixel(x,y:integer; const CD : TColordata);
Protected procedure SetColorPixel(x,y:integer; const CD : TColordata);
Protected procedure SetColorTrPixel(x,y:integer; const CD : TColordata);
Protected procedure SetPalColPixel(x,y:integer; const CD : TColordata);
Protected procedure SetPalettePixel(x,y:integer; const CD : TColordata);

Properties

Protected property ConvertColor : TConvertColorProc read FConvertColor;
Protected property CountScanlines : EightLong read FCountScanlines;
Protected property CurrentPass : byte read FCurrentPass;
Public property FrameControl[AIndex: Integer]: TFrameControlChunk read GetFrameControl;
Public property FrameCount : integer read FFrameCount;
Protected property Header : THeaderChunk read FHeader;
Public property Indexed : boolean read FIndexed;
Public property LoopCount : integer read FLoopCount;
Public property MainImageFrameIndex: integer read FMainImageFrameIndex;
Public property MinifyHeight: integer read FMinifyHeight write FMinifyHeight;
Public property OriginalHeight: integer read GetOriginalHeight;
Public property OriginalWidth: integer read GetOriginalWidth;
Protected property ScanLineLength : EightLong read FScanLineLength;
Public property ThePalette : TFPPalette read FPalette;
Public property VerticalShrinkFactor: integer read GetVerticalShrinkFactor;

Description

Fields

Protected Chunk: TChunk;

This item has no description.

Protected DataBytes: TColorData;

This item has no description.

Protected DataIndex: LongWord;

This item has no description.

Protected EndOfFile: boolean;

This item has no description.

Protected TransparentDataValue: TColorData;

This item has no description.

Protected UseTransparent: boolean;

This item has no description.

Protected UsingBitGroup: byte;

This item has no description.

Methods

Public constructor Create; override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function GetBitmapDraft(AStream: TStream; AMaxWidth, AMaxHeight: integer; out AOriginalWidth,AOriginalHeight: integer): TBGRACustomBitmap; override;

This item has no description. Showing description inherited from TBGRAImageReader.GetBitmapDraft.

Return a draft of the bitmap, the ratio may change compared to the original width and height (useful to make thumbnails)

Public function GetQuickInfo(AStream: TStream): TQuickImageInfo; override;

This item has no description. Showing description inherited from TBGRAImageReader.GetQuickInfo.

Return bitmap information (size, bit depth)

Protected function CalcColor(const ScanLine : PByteArray): TColorData;

This item has no description.

Protected function DecideSetPixel: TSetPixelProc; virtual;

This item has no description.

Protected function InternalCheck(Str:TStream) : boolean; override;

This item has no description.

Public procedure LoadFrame(AIndex: integer; AImage: TFPCustomImage);

This item has no description.

Protected procedure AssignPalette;

This item has no description.

Protected procedure AssignResolutionValues;

This item has no description.

Protected procedure BGRAHandleScanLine(const y: integer; const ScanLine: PByteArray);

This item has no description.

Protected procedure BGRAHandleScanLineTr(const y: integer; const ScanLine: PByteArray);

This item has no description.

Protected procedure DoDecompress(ACompressedData: TStream; AWidth, AHeight: integer); virtual;

This item has no description.

Protected procedure DoLoadImage(AImage: TFPCustomImage; AData: TStream; AWidth, AHeight: integer); virtual;

This item has no description.

Protected procedure HandleAlpha; virtual;

This item has no description.

Protected procedure HandleAnimationControl; virtual;

This item has no description.

Protected procedure HandleChunk; virtual;

This item has no description.

Protected procedure HandleData; virtual;

This item has no description.

Protected procedure HandleFrameControl; virtual;

This item has no description.

Protected procedure HandleFrameData; virtual;

This item has no description.

Protected procedure HandleGamma; virtual;

This item has no description.

Protected procedure HandlePalette; virtual;

This item has no description.

Protected procedure HandlePhysicalDimensions; virtual;

This item has no description.

Protected procedure HandleScanLine(const y : integer; const ScanLine : PByteArray); virtual;

This item has no description.

Protected procedure HandleStdRGB; virtual;

This item has no description.

Protected procedure HandleUnknown; virtual;

This item has no description.

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

This item has no description.

Protected procedure PredefinedResolutionValues; virtual;

This item has no description.

Protected procedure SetBGRAColorPixel(x,y:integer; const CD : TColordata);

This item has no description.

Protected procedure SetBGRAColorTrPixel(x,y:integer; const CD : TColordata);

This item has no description.

Protected procedure SetColorPixel(x,y:integer; const CD : TColordata);

This item has no description.

Protected procedure SetColorTrPixel(x,y:integer; const CD : TColordata);

This item has no description.

Protected procedure SetPalColPixel(x,y:integer; const CD : TColordata);

This item has no description.

Protected procedure SetPalettePixel(x,y:integer; const CD : TColordata);

This item has no description.

Properties

Protected property ConvertColor : TConvertColorProc read FConvertColor;

This item has no description.

Protected property CountScanlines : EightLong read FCountScanlines;

This item has no description.

Protected property CurrentPass : byte read FCurrentPass;

This item has no description.

Public property FrameControl[AIndex: Integer]: TFrameControlChunk read GetFrameControl;

This item has no description.

Public property FrameCount : integer read FFrameCount;

animation

Protected property Header : THeaderChunk read FHeader;

This item has no description.

Public property Indexed : boolean read FIndexed;

This item has no description.

Public property LoopCount : integer read FLoopCount;

This item has no description.

Public property MainImageFrameIndex: integer read FMainImageFrameIndex;

This item has no description.

Public property MinifyHeight: integer read FMinifyHeight write FMinifyHeight;

thumbnail reduction

Public property OriginalHeight: integer read GetOriginalHeight;

This item has no description.

Public property OriginalWidth: integer read GetOriginalWidth;

image format

Protected property ScanLineLength : EightLong read FScanLineLength;

This item has no description.

Public property ThePalette : TFPPalette read FPalette;

This item has no description.

Public property VerticalShrinkFactor: integer read GetVerticalShrinkFactor;

This item has no description.