Andorra Suite Documentation

Unit AdPNGImage

Uses

Unit dependencies

View fullscreen

Description

Provides an image class to load and save PNG files.

Structures

class

packed record

record

Enumerations

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)
    );

Types

TAdPNGColorType
= set of (pctPalette = 0, pctColor = 1, pctAlpha = 2);
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;

This page was generated by a documentation system written by Andreas Stoeckel. This system makes use of a modified PasDoc version (download can be found here) and Graphviz.

Get Andorra Commons at SourceForge.net. Fast, secure and Free Open Source software downloads