MCPcopy Create free account
hub / github.com/dfinity/examples / add_logo

Function add_logo

rust/qrcode/backend/src/core.rs:53–85  ·  view source on GitHub ↗

Adds the given logo at the center of QR code image. It ensures that the logo does not cover more than 10% of the image, which is below the QR error threshold.

(qr: &mut ImageBuffer<Rgba<u8>, Vec<u8>>, logo: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

generateFunction · 0.85

Calls 1

get_qr_element_sizeFunction · 0.85

Tested by

no test coverage detected