png
contains routines that enable users to read and write PNG
files. It wraps the png
crate and returns errors directly from the library where further documentation can be found on
the precise nature of the DecodingError
and the EncodingError
.
Error | Error wraps a decoding/encoding error directly from the underlying png crate dependency or
conveys that the supplied Reader does not match the expected format.
|
read_rgb8 | read_rgb8 claims ownership of the supplied std::io::Read type and attempts to decode an
8-bit RGB image.
|
read_rgba8 | read_rgba8 claims ownership of the supplied std::io::Read type and attempts to decode an
8-bit RGBA image.
|
write_grayalpha8 | write_grayalpha8 attempts to write the provided grayscale-alpha image to the supplied
std::io::Write object using the specified width and height.
|
write_rgb8 | write_rgb8 attempts to write the provided RGB image to the supplied std::io::Write
object using the specified width and height.
|
write_rgba8 | write_rgba8 attempts to write the provided RGBA image to the supplied std::io::Write
object using the specified width and height.
|