pngtext.pngtext

Contains the functions to read/write to hidden data in png files.

Members

Functions

calculateOptimumDensity
uinteger[ubyte] calculateOptimumDensity(string filename, uinteger dataLength)
calculatePngCapacity
uinteger calculatePngCapacity(string pngFilename, ubyte density)
readDataFromPng
ubyte[] readDataFromPng(string pngFilename)

reads some data from a png image

writeDataToPng
string[] writeDataToPng(string pngFilename, string outputFilename, ubyte[] data)

writes some data to a png image

Variables

BYTES_PER_PIXEL
auto BYTES_PER_PIXEL;

Number of bytes per pixel (red, green, blue, & alpha = 4)

HEADER_BYTES
auto HEADER_BYTES;

Number of bytes taken by header

HEADER_DENSITY
auto HEADER_DENSITY;

Density for writing/reading header

Meta