Package com.aspose.tasks
Class ImageFormat
- java.lang.Object
-
- com.aspose.tasks.ImageFormat
-
public final class ImageFormat extends Object
Specifies the file format of the image. Cannot be extended.
-
-
Constructor Summary
Constructors Constructor Description ImageFormat(String guid)Initializes a new instance of the ImageFormat class by using the specified Guid string.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.static ImageFormatgetBmp()Gets the bitmap (BMP) image format.static ImageFormatgetEmf()Gets the enhanced metafile (EMF) image format.static ImageFormatgetExif()Gets the Exchangeable Image File (Exif) format.static ImageFormatgetGif()Gets the Graphics Interchange Format (GIF) image format.StringgetGuid()Gets a Guid string that represents this ImageFormat object.static ImageFormatgetIcon()Gets the Windows icon image format.static ImageFormatgetJpeg()Gets the Joint Photographic Experts Group (JPEG) image format.static ImageFormatgetMemoryBmp()Gets the format of a bitmap in memory.static ImageFormatgetPng()Gets the W3C Portable Network Graphics (PNG) image format.static ImageFormatgetTiff()Gets the Tagged Image File Format (TIFF) image format.static ImageFormatgetWmf()Gets the Windows metafile (WMF) image format.inthashCode()Returns a hash code value that represents this object.booleanisBitmapType()Determines whether an image format is a bitmap type.booleanisMetafileType()Determines whether an image format is a metafile type.booleanisUnknownType()Determines whether an image format is unknown type.StringtoString()Converts this ImageFormat object to a human-readable string.
-
-
-
Constructor Detail
-
ImageFormat
public ImageFormat(String guid)
Initializes a new instance of the ImageFormat class by using the specified Guid string.- Parameters:
guid- The Guid string that specifies a particular image format.
-
-
Method Detail
-
equals
public boolean equals(Object o)
Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.
-
getBmp
public static ImageFormat getBmp()
Gets the bitmap (BMP) image format.- Returns:
- An ImageFormat object that indicates the bitmap image format.
-
getEmf
public static ImageFormat getEmf()
Gets the enhanced metafile (EMF) image format.- Returns:
- An ImageFormat object that indicates the enhanced metafile image format.
-
getExif
public static ImageFormat getExif()
Gets the Exchangeable Image File (Exif) format.- Returns:
- An ImageFormat object that indicates the Exif format.
-
getGif
public static ImageFormat getGif()
Gets the Graphics Interchange Format (GIF) image format.- Returns:
- An ImageFormat object that indicates the GIF image format.
-
getGuid
public String getGuid()
Gets a Guid string that represents this ImageFormat object.- Returns:
- A Guid string that represents this ImageFormat object.
-
getIcon
public static ImageFormat getIcon()
Gets the Windows icon image format.- Returns:
- An ImageFormat object that indicates the Windows icon image format.
-
getJpeg
public static ImageFormat getJpeg()
Gets the Joint Photographic Experts Group (JPEG) image format.- Returns:
- An ImageFormat object that indicates the JPEG image format.
-
getMemoryBmp
public static ImageFormat getMemoryBmp()
Gets the format of a bitmap in memory.- Returns:
- An ImageFormat object that indicates the format of a bitmap in memory.
-
getPng
public static ImageFormat getPng()
Gets the W3C Portable Network Graphics (PNG) image format.- Returns:
- An ImageFormat object that indicates the PNG image format.
-
getTiff
public static ImageFormat getTiff()
Gets the Tagged Image File Format (TIFF) image format.- Returns:
- An ImageFormat object that indicates the TIFF image format.
-
getWmf
public static ImageFormat getWmf()
Gets the Windows metafile (WMF) image format.- Returns:
- An ImageFormat object that indicates the Windows metafile image format.
-
hashCode
public int hashCode()
Returns a hash code value that represents this object.
-
isBitmapType
public boolean isBitmapType()
Determines whether an image format is a bitmap type.- Returns:
- true if an image format is a bitmap type; otherwise, false.
-
isMetafileType
public boolean isMetafileType()
Determines whether an image format is a metafile type.- Returns:
- true if an image format is a metafile type; otherwise, false.
-
isUnknownType
public boolean isUnknownType()
Determines whether an image format is unknown type.- Returns:
- true if an image format is unknown type; otherwise, false.
-
-