ReadonlypixelsThe straight-alpha RGBA pixels, row-major.
ReadonlywidthWidth in pixels.
ReadonlyheightHeight in pixels.
ReadonlyfractionThe logo's width as a fraction of the QR code's module width.
ReadonlyclearModules cleared around the logo.
ReadonlyclearThe cleared area's shape.
StaticfromA logo from a raw RGBA raster (copied).
StaticfromA logo decoded from PNG or JPEG bytes, the formats the reference is
built with, as its into_rgba8 decodes them: every PNG colour type
and bit depth (palettes and tRNS expanded, sub-byte grey scaled,
16-bit samples as (c + 128) / 257). Any other format, or bytes that
do not decode, are ImageEncode (failed to decode image: … with
the reference's wording: The image format Gif is not supported,
The image format could not be determined). SVG needs the
/svg-logo entry (logoFromSvg).
An RGBA logo to overlay on the centre of a QR code. Instances are frozen and own their pixels.