module font::pngsource
PNG images, the bitmap glyphs of CBDT and sbix are kept as (decisions/F10.md, "Color emoji"): 8-bit images (gray, gray and alpha, RGB, RGBA, palettes of 1 to 8 bits; 16-bit samples keep their high byte; not interlaced) read into RGBA, the zlib stream (RFC 1950) inflated by std::deflate.
type RgbaImagesource
exp type RgbaImage = struct
An image, RGBA with straight alpha, row after row from the top.
Fields
exp width: u32exp height: u32exp pixels: Vector<u8>
fn read_pngsource
exp fn read_png(bytes: &[u8]) -> Result<RgbaImage, String>
The image the bytes hold, or why not.