ImageType
Contents
[
Hide
]
ImageType structure
Represents one supportable image type (format), supports both raster and vector formats
public struct ImageType : IEquatable<ImageType>, IResourceType
Properties
Name | Description |
---|---|
static Bmp { get; } | BMP image type |
static Emf { get; } | EMF (Enhanced MetaFile) vector image type |
static Gif { get; } | GIF image type |
static Icon { get; } | ICON image type |
static Jpeg { get; } | JPEG image type |
static Png { get; } | PNG image type |
static Svg { get; } | SVG vector image type |
static Tiff { get; } | TIFF (Tagged Image File Format) raster image type |
static Undefined { get; } | Undefined image type - special value, which should not normally occur |
static Wmf { get; } | WMF (Windows MetaFile) vector image type |
FileExtension { get; } | File extension (without leading dot character) of a particular image type in lower case. For the Undefined type returns a string ‘unsefined’. |
FormalName { get; } | Returns a formal name of this image format. Never reurns NULL. If instance is not corrupted, never throws an exception. |
IsVector { get; } | Indicates whether this particular format is vector (true) or raster (false) |
MimeCode { get; } | MIME code of a particular image type as a string. For the Undefined type returns a string ‘unsefined’. |
Methods
Name | Description |
---|---|
static ParseFromFilenameWithExtension(string) | Returns ImageType value, which is equivalent of filename extension, which is extracted from specified filename |
static ParseFromMime(string) | Returns ImageType value, which is equivalent of specified MIME code |
Equals(ImageType) | Determines whether this instance is equal with specified “ImageType” instance |
override Equals(object) | Determines whether this instance is equal with specified uncasted object, which presumably is another “ImageType” instance |
override GetHashCode() | Returns a hash-code, which is an immutable number for this specific instance |
override ToString() | Returns a FormalName property |
operator == | Defines whether two specific ImageType instances are equal |
operator != | Defines whether two specific ImageType instances are not equal |
See Also
- interface IResourceType
- namespace GroupDocs.Editor.HtmlCss.Resources.Images
- assembly GroupDocs.Editor