Skip to main content

hero

Function hero 

pub fn hero(picture: &ImageBuffer<Rgba<u8>, Vec<u8>>, width: u32) -> String
Expand description

A whole picture as the data: picture a card heads itself with, width wide and as tall as the picture’s own shape: no ground around it, so what it caught fills the card. Empty for a picture that does not encode or whose smallest encoding costs more than HERO_BUDGET.