#[repr(u32)]pub enum ImageType {
UndefinedType = 0,
BilevelType = 1,
GrayscaleType = 2,
GrayscaleMatteType = 3,
PaletteType = 4,
PaletteMatteType = 5,
TrueColorType = 6,
TrueColorMatteType = 7,
ColorSeparationType = 8,
ColorSeparationMatteType = 9,
OptimizeType = 10,
Unknown = 4_294_967_295,
}
Expand description
ImageType indicates the type classification of the image.
Variants§
UndefinedType = 0
Unset value.
BilevelType = 1
Monochrome image
GrayscaleType = 2
Grayscale image
GrayscaleMatteType = 3
Grayscale image with opacity
PaletteType = 4
Indexed color (palette) image
PaletteMatteType = 5
Indexed color (palette) image with opacity
TrueColorType = 6
Truecolor image
TrueColorMatteType = 7
Truecolor image with opacity
ColorSeparationType = 8
Cyan/Yellow/Magenta/Black (CYMK) image
ColorSeparationMatteType = 9
OptimizeType = 10
Unknown = 4_294_967_295
Trait Implementations§
Source§impl FromPrimitive for ImageType
impl FromPrimitive for ImageType
impl Copy for ImageType
impl Eq for ImageType
impl StructuralPartialEq for ImageType
Auto Trait Implementations§
impl Freeze for ImageType
impl RefUnwindSafe for ImageType
impl Send for ImageType
impl Sync for ImageType
impl Unpin for ImageType
impl UnwindSafe for ImageType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more