pub type GrayImage = ImageBuffer<Luma<u8>, Vec<u8>>;Expand description
Sendable grayscale image buffer
Aliased Type§
pub struct GrayImage {
width: u32,
height: u32,
_phantom: PhantomData<Luma<u8>>,
data: Vec<u8>,
}Fields§
§width: u32§height: u32§_phantom: PhantomData<Luma<u8>>§data: Vec<u8>Implementations§
Trait Implementations§
Source§impl From<DynamicImage> for GrayImage
impl From<DynamicImage> for GrayImage
Source§fn from(value: DynamicImage) -> Self
fn from(value: DynamicImage) -> Self
Converts to this type from the input type.