#[non_exhaustive]pub enum ImageFormat {
None = 0,
Bmp = 1,
Gif = 2,
Png = 3,
Apng = 4,
Jpeg = 5,
Pnm = 6,
}Expand description
Indicates the file format the image used (when loading it) or will use (when storing it).
For more information, see the libplum’s Supported file formats page.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None = 0
No image type.
Used by an image for which an image type hasn’t been specified, such as one just created by DirectImage::new_zeroed().
It may also be used as an explicit “no type” designator.
Bmp = 1
BMP (Windows Bitmap) file.
Gif = 2
GIF (CompuServe’s Graphics Interchange Format) format, including both static images and animations.
Png = 3
PNG (Portable Network Graphics) file.
Apng = 4
Animated PNG file.
Treated as a separate format because it is not actually compatible with PNG (due to using ancillary chunks to store critical animation information), which will cause APNG-unaware viewers and editors to handle it incorrectly.
Jpeg = 5
JPEG (Joint Photographers Expert Group) file.
Pnm = 6
netpbm’s PNM (Portable Anymap) format.
When loading, it represents any possible PNM file; however, only PPM and PAM files will be written.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
impl Eq for ImageFormat
Source§impl From<ImageFormat> for plum_image_types
impl From<ImageFormat> for plum_image_types
Source§fn from(value: ImageFormat) -> Self
fn from(value: ImageFormat) -> Self
Source§impl From<ImageFormat> for u8
impl From<ImageFormat> for u8
Source§fn from(value: ImageFormat) -> Self
fn from(value: ImageFormat) -> Self
Source§impl From<ImageFormat> for u16
impl From<ImageFormat> for u16
Source§fn from(value: ImageFormat) -> Self
fn from(value: ImageFormat) -> Self
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
Source§fn eq(&self, other: &ImageFormat) -> bool
fn eq(&self, other: &ImageFormat) -> bool
self and other values to be equal, and is used by ==.