|
Enrollment 28.2.0
|
It contains all supported image types. More...
#include <ImageType.h>
Public Types | |
| enum | Type : uint8_t { BMP , PNG , WSQ , IRAW , JPG , TIFF , JPG2000 , WEBP } |
| Type of supported images. More... | |
Public Member Functions | |
| constexpr | ImageType (Type t) |
| Construct ImageType from enum Type. | |
| constexpr | ImageType (uint8_t t) |
| Construct ImageType from basic type When value does not match enum value then UNKNOWN is set. | |
Static Public Member Functions | |
| static ImageType | FromFileExtension (const std::string &extension) |
| Construct ImageType from file extension. | |
Static Public Attributes | |
| static constexpr uint8_t | UNKNOWN = 255 |
| Unknown image type. | |
It contains all supported image types.
| enum Type : uint8_t |
Type of supported images.
| Enumerator | |
|---|---|
| BMP | Windows bitmaps - bmp, dib. Raster graphics image file format developed by Microsoft. [18] |
| PNG | Portable Network Graphics - png. PNG supports palette-based images (with palettes of 24-bit RGB or 32-bit RGBA colors), grayscale images (with or without an alpha channel for transparency), and full-color non-palette-based RGB or RGBA images. [14] |
| WSQ | Wavelet Scalar Quantization - wsq. WSQ (Wavelet Scalar Quantization), also known as FBI Print Format, is a raster image file format used for storing images of prints. It uses lossy wavelet compression, and supports only grayscale images. |
| IRAW | Innovatrics proprietary RAW image - iraw. The format is IRAW (4 bytes), width (4 bytes, big endian unsigned int), height (4 bytes, big endian unsigned int), dpi (4 bytes, big endian unsigned int), type (4 bytes, big endian unsigned int), data. |
| JPG | Joint Photographic Experts Group - jpeg, jpg, jpe. JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. [12] |
| TIFF | Tagged Image File Format - tiff, tif. TIF is an image file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers. [15] |
| JPG2000 | JPEG 2000 is an image compression standard and coding system - jp2. JPEG 2000 (JP2) is an image compression standard and coding system. It was developed from 1997 to 2000 by a Joint Photographic Experts Group committee with the intention of superseding their original JPEG standard (created in 1992) [13] |
| WEBP | WebP is an image file format developed by Google - webp. It is intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression as well as animation and alpha transparency. [16] |
Construct ImageType from enum Type.
| t | enum Type value |
Referenced by FromFileExtension().
|
inlineexplicitconstexpr |
Construct ImageType from basic type When value does not match enum value then UNKNOWN is set.
| t | enum value |
| ImageException | when type is unknown |
|
inlinestatic |
Construct ImageType from file extension.
| ImageException | when file extension is unknown |
| extension | extension with '.' e.g. '.bmp' |
References BMP, ImageType(), IRAW, JPG, JPG2000, PNG, TIFF, ImageException::UNKNOWN_IMAGE, WEBP, and WSQ.
Referenced by ImageFileSaver::Save().