public class ImageType extends com.aspose.ms.lang.Struct<ImageType> implements com.aspose.ms.System.IEquatable<ImageType>, IResourceType
Represents one supportable image type, supports both raster and vector types
Constructor and Description |
---|
ImageType() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
ImageType |
Clone() |
void |
CloneTo(ImageType that) |
boolean |
equals(ImageType other)
Determines whether this instance is equal with specified "ImageType"
instance
|
static boolean |
equals(ImageType obj1,
ImageType obj2) |
boolean |
equals(Object obj)
Determines whether this instance is equal with specified uncasted object,
which presumably is another "ImageType" instance
|
static ImageType |
getBmp()
BMP image type
|
String |
getFileExtension()
File extension (without leading dot character) of a particular image type
in lower case
|
String |
getFormalName()
Returns a formal name of this raster image type
|
com.aspose.ms.System.Drawing.Imaging.ImageFormat |
getFormat()
.NET-standard image format description of a particular image type, if it
is a raster image format
|
static ImageType |
getGif()
GIF image type
|
static ImageType |
getIcon()
ICON image type
|
static ImageType |
getJpeg()
JPEG image type
|
String |
getMimeCode()
MIME code of a particular image type
|
static ImageType |
getPng()
PNG image type
|
static ImageType |
getSvg()
SVG vector image type
|
static ImageType |
getUndefined()
Undefined image type - special value, which should not normally occur
|
static ImageType |
getWmf()
WMF (Windows MetaFile) vector image type
|
int |
hashCode()
Returns a hash-code, which is an immutable number for this specific
instance
|
static boolean |
op_Equality(ImageType first,
ImageType second)
Defines whether two specific ImageType instances are equal
|
static boolean |
op_Inequality(ImageType first,
ImageType second)
Defines whether two specific ImageType instances are not equal
|
static ImageType |
parseFromFilenameWithExtension(String filename)
Returns ImageType value, which is equivalent of filename extension, which
is extracted from specified filename
|
static ImageType |
parseFromMime(String mimeCode)
Returns ImageType value, which is equivalent of specified MIME code
|
public ImageType Clone()
Clone
in class com.aspose.ms.System.ValueType<ImageType>
public void CloneTo(ImageType that)
CloneTo
in class com.aspose.ms.System.ValueType<ImageType>
public final boolean equals(ImageType other)
Determines whether this instance is equal with specified "ImageType" instance
other
- Other ImageType instance to check on equality with thispublic boolean equals(Object obj)
Determines whether this instance is equal with specified uncasted object, which presumably is another "ImageType" instance
public static ImageType getBmp()
BMP image type
public final String getFileExtension()
File extension (without leading dot character) of a particular image type in lower case
getFileExtension
in interface IResourceType
public final String getFormalName()
Returns a formal name of this raster image type
getFormalName
in interface IResourceType
public final com.aspose.ms.System.Drawing.Imaging.ImageFormat getFormat()
.NET-standard image format description of a particular image type, if it is a raster image format
public static ImageType getGif()
GIF image type
public static ImageType getIcon()
ICON image type
public static ImageType getJpeg()
JPEG image type
public final String getMimeCode()
MIME code of a particular image type
getMimeCode
in interface IResourceType
public static ImageType getPng()
PNG image type
public static ImageType getSvg()
SVG vector image type
public static ImageType getUndefined()
Undefined image type - special value, which should not normally occur
public static ImageType getWmf()
WMF (Windows MetaFile) vector image type
public int hashCode()
Returns a hash-code, which is an immutable number for this specific instance
public static boolean op_Equality(ImageType first, ImageType second)
Defines whether two specific ImageType instances are equal
first
- First ImageType instance to checksecond
- Second ImageType instance to checkpublic static boolean op_Inequality(ImageType first, ImageType second)
Defines whether two specific ImageType instances are not equal
first
- First ImageType instance to checksecond
- Second ImageType instance to checkpublic static ImageType parseFromFilenameWithExtension(String filename)
Returns ImageType value, which is equivalent of filename extension, which is extracted from specified filename
filename
- Arbitrary filename, can be a relative or full pathCopyright © 2020. All rights reserved.