pub fn load_with_maxcolor(
path: &str,
max_color: u32,
) -> Result<Vec<Record>, ImageError>
Expand description
Open the image located at the path specified, return {max_color} dominant colors.
ยงExamples
let colors = image_palette::load_with_maxcolor("test.jpg", 32).unwrap();
for item in colors {
println!("{}:{}", item.color(), item.count());
}