ImageFormat Enum
Identifies an encoded image file format.
public enum ImageFormatRemarks
Formats are detected from content, never from file names. Animated PNG (APNG) is reported as ImageFormat.Png: it is a PNG variant, not a competing signature. New formats are added as new members; the formats of the codecs an application registers (ImageConfiguration.Codecs) are all ImageFormat.Custom.
Fields
| Name | Value | Description |
|---|---|---|
Unknown | 0 | The format is unknown or not recognized. |
Png | 1 | Portable Network Graphics, including animated PNG (APNG). |
Gif | 2 | Graphics Interchange Format (GIF87a and GIF89a). |
Jpeg | 3 | JPEG (JFIF/EXIF) sequential and progressive images, Huffman coded or arithmetic coded. |
WebP | 4 | WebP (RIFF container): lossy VP8 and lossless VP8L still images and animations. |
Qoi | 5 | Quite OK Image format: lossless 8-bit RGB and RGBA still images. |
Bmp | 6 | Windows BMP (device-independent bitmap), uncompressed subset. |
Tga | 7 | Truevision TGA (TARGA), true-color, grayscale and color-mapped still images. |
Pnm | 8 | Netpbm portable anymap family: PBM, PGM, PPM (P1 to P6) and PAM (P7). |
Tiff | 9 | Tagged Image File Format, including BigTIFF. A TIFF file is a document of one or more pages; use ImageCollection to reach pages other than the first one. |
Ico | 10 | Windows icon container. An icon file holds alternative representations of one drawing; use ImageCollection to reach representations other than the default one. |
Cur | 11 | Windows cursor container: an icon directory whose entries also carry a hotspot. |
Ani | 12 | Windows animated cursor (RIFF ACON container): an animation whose frames are icon or cursor images, each with its own hotspot (FrameMetadata.Hotspot). |
Avif | 13 | AV1 Image File Format: still images and image sequences coded with AV1 in an ISO base media (HEIF) container. |
JpegXl | 14 | JPEG XL (ISO/IEC 18181): a bare codestream or its container, still images and animations, lossy (VarDCT) and lossless (Modular) coding. Encoding is lossless. |
Heic | 15 | High Efficiency Image File Format images coded with HEVC (H.265): still images and image sequences in an ISO base media (HEIF) container. |
Jpeg2000 | 16 | JPEG 2000 (ISO/IEC 15444-1): a codestream or a JP2 file, coded with the reversible or the irreversible wavelet transformation. Codestreams that use the high-throughput block coder (ISO/IEC 15444-15, HTJ2K) are read. |
OpenExr | 17 | OpenEXR: high dynamic range scene-linear images of 16-bit (half) or 32-bit floating-point samples, stored as scan lines or tiles with lossless or lossy compression. |
Radiance | 18 | Radiance HDR (RGBE): high dynamic range linear-light images whose pixels share an exponent between their three colors, stored flat or run-length encoded (.hdr, .pic). |
Psd | 19 | Adobe Photoshop documents (.psd) and large documents (PSB, .psb): the composite image Photoshop stores next to the layers is read (the layers are not rendered). Only read: no encoder writes this format. |
Dng | 20 | Adobe Digital Negative (DNG): the raw samples of a camera sensor (a color filter array or linear raw data) in a TIFF profile, rendered to scene-referred linear light. DNG is read, never written. |
Dds | 21 | DDS (DirectDraw Surface): textures of Direct3D, block-compressed (BC1 to BC7) or uncompressed, with mipmaps, cube maps, arrays and volume textures (.dds). Read only; ImageCollection reaches every surface. |
Dpx | 22 | DPX (SMPTE ST 268, Digital Moving-Picture Exchange): film scans and video frames of 1 to 16-bit integer or 32 and 64-bit floating-point components, RGB, luma or Cb, Y, Cr, in either byte order (.dpx). |
Cineon | 23 | Kodak Cineon: film scans, usually 10-bit printing densities, the predecessor of DPX (.cin). Only decoding is supported. |
Ktx2 | 24 | KTX 2.0 (Khronos Texture): GPU textures with mip levels, array layers, cube faces and depth slices, uncompressed or block-compressed (BC1 to BC7, ETC2, EAC, ASTC, Basis Universal ETC1S and UASTC), optionally supercompressed (.ktx2). Read only. |
Custom | 1000 | A format read or written by a CustomImageCodec of ImageConfiguration.Codecs, not by the library itself. ImageInfo.FormatInfo and CustomImageEncoder.FormatInfo tell which one. |