pub fn num_channels(&self) -> usize {
        match self {
            ColorSpace::Luma => 1,
            ColorSpace::LumaA => 2,
            ColorSpace::Rgb => 3,
            ColorSpace::Rgba => 4,
            ColorSpace::DigitalYuv => 3,
            ColorSpace::Bgra => 4,
        }
    }
/// Get number of channels for the color space.
Get number of channels for the color space.
Get number of channels for the color space .
pub fn num_channels(&self) -> usize {
        match self {
            ColorSpace::Luma => 1,
            ColorSpace::LumaA => 2,
            ColorSpace::Rgb => 3,
            ColorSpace::Rgba => 4,
            ColorSpace::DigitalYuv => 3,
            ColorSpace::Bgra => 4,
        }
    }
pub fn num_channels ( & self ) -> usize { match self { ColorSpace :: Luma => 1 , ColorSpace :: LumaA => 2 , ColorSpace :: Rgb => 3 , ColorSpace :: Rgba => 4 , ColorSpace :: DigitalYuv => 3 , ColorSpace :: Bgra => 4 , } }
Get number of channels for the color space.
Get number of channels for the color space .
&self
&self