pub fn to_png_to_writer_from_segments<W: Write>(
    segments: &[QrSegment],
    ecc: QrCodeEcc,
    size: usize,
    writer: &mut W
) -> Result<(), QRCodeError>
Expand description

Encode segments to a PNG image via a writer.