Class ImageFormat
Identifies an image codec (format).
Inherited Members
Namespace: DRIT.Drawing.Imaging
Assembly: DRIT.Drawing.dll
Syntax
public sealed class ImageFormat
Fields
Bmp
Gets the Windows Bitmap (BMP) image format.
Declaration
public static readonly ImageFormat Bmp
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Emf
Gets the Windows Enhanced Metafile (EMF) image format.
Declaration
public static readonly ImageFormat Emf
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Gif
Gets the Graphics Interchange Format (GIF) image format.
Declaration
public static readonly ImageFormat Gif
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Icon
Gets the Windows Icon (ICO) image format.
Declaration
public static readonly ImageFormat Icon
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Jpeg
Gets the Joint Photographic Experts Group (JPEG) image format.
Declaration
public static readonly ImageFormat Jpeg
Field Value
| Type | Description |
|---|---|
| ImageFormat |
MemoryBmp
Gets the memory bitmap image format.
Declaration
public static readonly ImageFormat MemoryBmp
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Png
Gets the Portable Network Graphics (PNG) image format.
Declaration
public static readonly ImageFormat Png
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Svg
Gets the Scalable Vector Graphics (SVG) image format.
Declaration
public static readonly ImageFormat Svg
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Tiff
Gets the Tagged Image File Format (TIFF) image format.
Declaration
public static readonly ImageFormat Tiff
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Wmf
Gets the Windows Metafile (WMF) image format.
Declaration
public static readonly ImageFormat Wmf
Field Value
| Type | Description |
|---|---|
| ImageFormat |
Properties
Guid
Gets the GUID of this image format.
Declaration
public Guid Guid { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Name
Gets the name of this image format.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Equals(object?)
Determines whether this image format is equal to another object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
GetHashCode()
Returns the hash code for this image format.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
Overrides
ToString()
Returns a string representation of this image format.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string containing the format GUID. |