Unit AdPngUtils

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains some helper functions for working with png images. Those functions are used by various png loaders.

Overview

Classes, Interfaces, Objects and Records

Name Description
packed record TPngChunk A record that represents a png chunk.
Class EAdExtractPng Exception that is raised when you call the ExtractPng procedure, but no png data is found.

Functions and Procedures

procedure ExtractPng(Src, Dst : TStream);
function IsPng(Src : TStream) : boolean;
function PngConvertEndian(const AVal: LongWord):LongWord;

Constants

PngSignature = #137#80#78#71#13#10#26#10;

Description

Functions and Procedures

procedure ExtractPng(Src, Dst : TStream);

Extracts a single png from the source stream and saves it to the destination stream.

function IsPng(Src : TStream) : boolean;

Returns true if the data in the stream is a png image.

function PngConvertEndian(const AVal: LongWord):LongWord;

Converts a the endian of a 32-Bit value.

Constants

PngSignature = #137#80#78#71#13#10#26#10;

The signature a png file is recognized by.

SourceForge.net Logo


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