Image2DFormat class
Leave feedback
On this page
Represents most common 2D image formats, supports both raster and vector formats.
The Image2DFormat type exposes the following members:
| Constructor | Description |
|---|---|
| init |
| Method | Description |
|---|---|
| equals | Determines whether this instance is equal to the specified Image2DFormat instance. |
| equals | Determines whether this instance is equal to the specified object, which is presumed to be another Image2DFormat instance. |
| equals_image_2d_format | |
| equals_object | |
| get_hash_code | Returns a hash code, which is an immutable number for this specific instance. |
| parse_from_filename_with_extension | Returns an Image2DFormat value that corresponds to the file extension extracted from the specified filename. |
| parse_from_mime | Returns an Image2DFormat value that corresponds to the specified MIME code. |
| to_string | Returns the Image2DFormat.name property. |
| Property | Description |
|---|---|
| file_extension | The file extension (without leading dot character) of a particular image type in lower case. |
| is_vector | The format is vector (True) or raster (False). |
| mime_code | The MIME code of a particular image type as a string. For the Undefined type returns a string ‘unsefined’. |
| name | The formal name of this image format. |
| Field | Description |
|---|---|
| UNDEFINED | Undefined image type - special value, which should not normally occur |
| JPEG | JPEG image type |
| PNG | PNG image type |
| BMP | BMP image type |
| GIF | GIF image type |
| ICON | ICON image type |
| SVG | SVG vector image type |
| WMF | WMF (Windows MetaFile) vector image type |
| EMF | EMF (Enhanced MetaFile) vector image type |
| TIFF | TIFF (Tagged Image File Format) raster image type |
- module
groupdocs.viewer.drawing
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.