Image2DFormat
Contents
[
Hide
]
Image2DFormat structure
Represents most common 2D image formats, supports both raster and vector formats
public struct Image2DFormat : IEquatable<Image2DFormat>
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 value returns a string ‘undefined’. |
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’. |
Name { get; } | Returns a formal name of this image format. Never reurns NULL. If instance is not corrupted, never throws an exception. |
Methods
Name | Description |
---|---|
static ParseFromFilenameWithExtension(string) | Returns ImageFormat value, which is equivalent of filename extension, which is extracted from specified filename |
static ParseFromMime(string) | Returns Image2DFormat value, which is equivalent of specified MIME code |
Equals(Image2DFormat) | Determines whether this instance is equal with specified “Image2DFormat ” instance |
override Equals(object) | Determines whether this instance is equal with specified uncasted object, which presumably is another “Image2DFormat ” instance |
override GetHashCode() | Returns a hash-code, which is an immutable number for this specific instance |
override ToString() | Returns a Name property |
operator == | Defines whether two specific Image2DFormat instances are equal |
operator != | Defines whether two specific Image2DFormat instances are not equal |
See Also
- namespace GroupDocs.Viewer.Drawing
- assembly GroupDocs.Viewer