Known image formats.
More...
|
static readonly IEnumerable< string > | KnownExtensions = KnownFormats.SelectMany(x => x.FileExtensions).Distinct().Select(x => "." + x) |
| A list of known image extensions. More...
|
|
◆ GetFormatForFile()
static ISupportedImageFormat GetFormatForFile |
( |
IFile |
file | ) |
|
|
inlinestatic |
Gets format for a file.
- Parameters
-
- Returns
- A
ISupportedImageFormat
instance or null if file extension in not in KnownExtensions list.
◆ GetResizedFormatForFile()
static ISupportedImageFormat GetResizedFormatForFile |
( |
IFile |
file | ) |
|
|
inlinestatic |
Gets format for a file after resize.
For Bitmap
and unknown file formats returns an instance of JpegFormat
.
- Parameters
-
- Returns
- A ISupportedImageFormat instance.
◆ RegisterFormat()
static void RegisterFormat |
( |
Type |
type | ) |
|
|
inlinestatic |
Registers a new image format.
- Parameters
-
type | A type of image format. Must implement ISupportedImageFormat . |
◆ RegisterFormat< T >()
Registers a new image format.
- Template Parameters
-
T | A type of image format. Must implement ISupportedImageFormat . |
◆ KnownExtensions
readonly IEnumerable<string> KnownExtensions = KnownFormats.SelectMany(x => x.FileExtensions).Distinct().Select(x => "." + x) |
|
static |
A list of known image extensions.
The documentation for this class was generated from the following file: