CrImage::PNG
PNG module implements Reader and Writer. The PNG specification is at https://www.w3.org/TR/PNG/.
Constants
PNG_HEADER = "\x89PNG\r\n\u001A\n".to_slice
Class methods
filter_paeth(cdat : Bytes, pdat : Bytes, bytes_per_pixel : Int32)
applies the Paeth filter to the cdat slice. cdat is the current row's data, pdat is the previous row's data :nodoc
paeth(a : UInt8, b : UInt8, c : UInt8) : UInt8
This file implements the Paeth predictor filter used in PNG compression. The Paeth filter predicts pixel values based on neighboring pixels. implements the Paeth filter function, as per the PNG specification
read and decode the configurations like color model, dimensions and does not decode entire image. This returns CrImage::Config instead.
write the Image to file in PNG format
write the Image to IO in PNG format