Unit AdPNGImage

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Provides an image class to load and save PNG files.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EAdPNGInvalidHeaderBytes  
Class EAdPNGInvalidFileException  
Class EAdPNGBrokenChunk  
Class EAdPNGUnsupportedFormatException  
Class EAdPNGUnknownChunkException  
packed record TAdPNGChunk  
packed record TAdPNGHeader  
record TAdPNGAdam7Pass  
Class TAdPNGImage  

Types

TAdPNGColorType = set of (pctPalette = 0, pctColor = 1, pctAlpha = 2);
TAdPNGCompressionMethod = (...);
TAdPNGFilterMethod = (...);
TAdPNGInterlaceMethod = (...);
TAdPNGFilterType = (...);
PAdPNGHeader = ˆTAdPNGHeader;
TAdPNGPalette = array of TRGBARec;
TAdPNGScanline = array of Byte;
TAdPNGSample = Byte;
TAdPNGSamples = array of TAdPNGSample;
TAdPNGLine = array of TRGBARec;
TAdPNGPixels = array of array of TRGBARec;

Constants

HIGH_COLORS: array[0..31] of Byte = (0, 8, 16, 25, 33, 41, 49, 58, 66, 74, 82, 90, 99, 107, 115, 123, 132, 140, 148, 156, 165, 173, 181, 189, 197, 206, 214, 222, 230, 239, 247, 255);
UPSAMPLING_TABLE_1BIT: array[0..1] of Byte = (0, 255);
UPSAMPLING_TABLE_2BIT: array[0..3] of Byte = (0, 85, 170, 255);
UPSAMPLING_TABLE_4BIT: array[0..15] of Byte = (0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255);
BITMASKS: array[1..4] of Byte = ($01, $03, $07, $0F);
HEADERBYTES: AnsiString = #$89#$50#$4E#$47#$0D#$A#$1A#$0A;
ADAM7PASSES: array[1..7] of TAdPNGAdam7Pass = ( (XOffset: 0; YOffset: 0; XSkip: 8; YSkip: 8), (XOffset: 4; YOffset: 0; XSkip: 8; YSkip: 8), (XOffset: 0; YOffset: 4; XSkip: 4; YSkip: 8), (XOffset: 2; YOffset: 0; XSkip: 4; YSkip: 4), (XOffset: 0; YOffset: 2; XSkip: 2; YSkip: 4), (XOffset: 1; YOffset: 0; XSkip: 2; YSkip: 2), (XOffset: 0; YOffset: 1; XSkip: 1; YSkip: 2) );

Description

Types

TAdPNGColorType = set of (pctPalette = 0, pctColor = 1, pctAlpha = 2);
 
TAdPNGCompressionMethod = (...);
 
Values
  • pcDeflate:  
TAdPNGFilterMethod = (...);
 
Values
  • pfStandard = 0:  
TAdPNGInterlaceMethod = (...);
 
Values
  • piNone = 0:  
  • piAdam7 = 1:  
TAdPNGFilterType = (...);
 
Values
  • pfNone = 0:  
  • pfSub = 1:  
  • pfUp = 2:  
  • pfAverage = 3:  
  • pfPaeth = 4:  
PAdPNGHeader = ˆTAdPNGHeader;
 
TAdPNGPalette = array of TRGBARec;
 
TAdPNGScanline = array of Byte;
 
TAdPNGSample = Byte;
 
TAdPNGSamples = array of TAdPNGSample;
 
TAdPNGLine = array of TRGBARec;
 
TAdPNGPixels = array of array of TRGBARec;
 

Constants

HIGH_COLORS: array[0..31] of Byte = (0, 8, 16, 25, 33, 41, 49, 58, 66, 74, 82, 90, 99, 107, 115, 123, 132, 140, 148, 156, 165, 173, 181, 189, 197, 206, 214, 222, 230, 239, 247, 255);
 
UPSAMPLING_TABLE_1BIT: array[0..1] of Byte = (0, 255);
 
UPSAMPLING_TABLE_2BIT: array[0..3] of Byte = (0, 85, 170, 255);
 
UPSAMPLING_TABLE_4BIT: array[0..15] of Byte = (0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255);
 
BITMASKS: array[1..4] of Byte = ($01, $03, $07, $0F);
 
HEADERBYTES: AnsiString = #$89#$50#$4E#$47#$0D#$A#$1A#$0A;
 
ADAM7PASSES: array[1..7] of TAdPNGAdam7Pass = ( (XOffset: 0; YOffset: 0; XSkip: 8; YSkip: 8), (XOffset: 4; YOffset: 0; XSkip: 8; YSkip: 8), (XOffset: 0; YOffset: 4; XSkip: 4; YSkip: 8), (XOffset: 2; YOffset: 0; XSkip: 4; YSkip: 4), (XOffset: 0; YOffset: 2; XSkip: 2; YSkip: 4), (XOffset: 1; YOffset: 0; XSkip: 2; YSkip: 2), (XOffset: 0; YOffset: 1; XSkip: 1; YSkip: 2) );
 

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00