Static methods
staticbuild32ARGB(width:Int, height:Int, data:Bytes, level:Int = 9):Data
Creates PNG data from bytes that contains four bytes in ARGB format for each pixel.
staticbuild32BGRA(width:Int, height:Int, data:Bytes, level:Int = 9):Data
Creates PNG data from bytes that contains four bytes in BGRA format for each pixel.
staticbuildGrey(width:Int, height:Int, data:Bytes, level:Int = 9):Data
Creates PNG data from bytes that contains one bytes (grey values) for each pixel.
staticbuildIndexed(width:Int, height:Int, data:Bytes, palette:Bytes, level:Int = 9):Data
Creates PNG data from bytes that contains a one byte palette index for each pixel and a separate palette with 3 RGB bytes per color.
staticbuildRGB(width:Int, height:Int, data:Bytes, level:Int = 9):Data
Creates PNG data from bytes that contains three bytes (R,G and B values) for each pixel.
staticextract32(d:Data, ?bytes:Bytes, ?flipY:Bool):Bytes
Decode the PNG data and apply filters. By default this will output BGRA low-endian format. You can use the [reverseBytes] function to inverse the bytes to ARGB big-endian format.
staticextractGrey(d:Data):Bytes
Decode the greyscale PNG data and apply filters, extracting only the grey channel if alpha is present.