pub fn write_png(
target: impl Into<OutputTarget>,
width: u32,
height: u32,
rgba: &[u8],
) -> Result<PublishReport, EncodeError>Expand description
Writes straight-alpha 8-bit RGBA rgba as a PNG at target, published whole or not at
all like write_whole.
ยงErrors
When rgba is not width x height pixels, or as write_whole.