TPNGImage help

PNG Delphi

Unit methods > ByteSwap


Inverts an integer bytes.

function ByteSwap(const a: Integer): Integer;

Description
Since all the 4 bytes integers from Portable Network Graphics data must encoded using network order, this method is intended to adjust integers from/to delphi form.