Function encode_frame

Source
fn encode_frame<W: Write>(
    writer: W,
    data: &[u8],
    width: u32,
    height: u32,
    color: ColorType,
    params: EncoderParams,
) -> Result<(), EncodingError>
Expand description

Encode image data with the indicated color type.

ยงPanics

Panics if the image data is not of the indicated dimensions.