Function imagine::netpbm::netpbm_try_bitmap_rgb
source · pub fn netpbm_try_bitmap_rgb<P>(bytes: &[u8]) -> Result<Bitmap<P>, ImagineError>where
P: Copy + From<r32g32b32_Sfloat>,
Available on crate features
netpbm
and alloc
only.Expand description
Automatically allocate and fill in a Bitmap.
If the file has less than width * height
pixels defined, the remainder
will be filled with black. If more pixels than that are defined the excess
data will be ignored.
Per the file format’s definition, the origin of the image is always the top left.