public final class Image2DFormat extends Object implements com.groupdocs.viewer.htmlcss.resources.IResourceType
| Modifier and Type | Field and Description |
|---|---|
static Image2DFormat |
BMP |
static Image2DFormat |
EMF |
static Image2DFormat |
GIF |
static Image2DFormat |
ICON |
static Image2DFormat |
JPEG |
static Image2DFormat |
PNG |
static Image2DFormat |
SVG |
static Image2DFormat |
TIFF |
static Image2DFormat |
UNDEFINED |
static Image2DFormat |
WMF |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFileExtension()
Returns lowercase file extension (without dot) for this format.
|
String |
getFormalName()
Returns a formal name of this image format.
|
String |
getMimeCode()
MIME code of the image format.
|
String |
getName()
Returns a formal name of this image format.
|
int |
hashCode() |
boolean |
isVector()
Indicates whether this format is vector (true) or raster (false).
|
static Image2DFormat |
parseFromFilenameWithExtension(String filename)
Returns Image2DFormat based on file extension (with or without dot).
|
static Image2DFormat |
parseFromMime(String mimeCode)
Returns Image2DFormat based on MIME type string.
|
String |
toString() |
public static final Image2DFormat BMP
public static final Image2DFormat EMF
public static final Image2DFormat GIF
public static final Image2DFormat ICON
public static final Image2DFormat JPEG
public static final Image2DFormat PNG
public static final Image2DFormat SVG
public static final Image2DFormat TIFF
public static final Image2DFormat UNDEFINED
public static final Image2DFormat WMF
public String getFileExtension()
getFileExtension in interface com.groupdocs.viewer.htmlcss.resources.IResourceTypepublic String getFormalName()
getFormalName in interface com.groupdocs.viewer.htmlcss.resources.IResourceTypepublic String getMimeCode()
getMimeCode in interface com.groupdocs.viewer.htmlcss.resources.IResourceTypepublic String getName()
public boolean isVector()
public static Image2DFormat parseFromFilenameWithExtension(String filename)
public static Image2DFormat parseFromMime(String mimeCode)
Copyright © 2025. All rights reserved.