#[non_exhaustive]pub enum ImFormat {
Show 18 variants
GIF = 1,
PNG = 2,
BMP = 3,
JPEG = 4,
WEBP = 5,
QOI = 6,
PSD = 7,
XCF = 8,
ICO = 9,
AVIF = 10,
TIFF = 11,
OpenEXR = 12,
PCX = 13,
TGA = 14,
DDS = 15,
HEIF = 16,
JP2K = 17,
DIB = 18,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GIF = 1
Graphics Interchange Format files in version GIF87a or GIF89a.
PNG = 2
Portable Network Graphics files. Requires the first chunk to be IHDR
.
BMP = 3
Windows Bitmap, both for Windows 2.0 (BITMAPCOREHEADER) and for newer versions (BITMAPINFOHEADER).
JPEG = 4
Joint Photographic Experts Group files.
WEBP = 5
WebP files. Supported sub-formats: VP8
, VP8L
, VP8X
.
QOI = 6
Quite OK Image format files.
PSD = 7
Adobe Photoshop files.
XCF = 8
GIMP files.
ICO = 9
ICO files can contain multiple images. This returns the dimensions of the biggest image in the file.
AVIF = 10
AV1 Image File Format.
TIFF = 11
Tag Image File Format. Supports big endian and little endian TIFF files.
OpenEXR = 12
OpenEXR files.
PCX = 13
PiCture eXchange files.
TGA = 14
TARGA (Truevision Advanced Raster Graphics Adapter) files.
Only if the file ends in b"TRUEVISION-XFILE.\0"
since otherwise there
is no good way to detect TGA files. Note that this string is optional
to this file format and thus there can be TGA files that aren’t supported
by this library.
DDS = 15
DirectDraw Surface files.
HEIF = 16
HEIC/HEIF files. These are extremely similar to AVIF and use the same parsing code.
JP2K = 17
JPEG 2000 files.
DIB = 18
Device-Independent Bitmap files.
Implementations§
Trait Implementations§
impl Copy for ImFormat
impl StructuralPartialEq for ImFormat
Auto Trait Implementations§
impl Freeze for ImFormat
impl RefUnwindSafe for ImFormat
impl Send for ImFormat
impl Sync for ImFormat
impl Unpin for ImFormat
impl UnwindSafe for ImFormat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)