macro_rules! make { ($channels:literal channels $w:literal x $h: literal) => { ... }; }
Expand description
Create a Image<[u8; N], C> with ease. If your looking for a Image<&’static [u8]>, try Image::make.
let mut i = fimg::make!(4 channels 128 x 128);Implementation note:
This is doable with a const generic fn, but it returns a fimg::Image<[u8; fimg::::{impl#7}::array::{constant#1}], _> which means you cant actually type it, so its useless.