ImageFormat
Inheritance: java.lang.Object
public final class ImageFormat
Specifies the file format of the image. Cannot be extended.
Constructors
Constructor | Description |
---|---|
ImageFormat(String guid) | Initializes a new instance of the ImageFormat class by using the specified Guid string. |
Methods
Method | Description |
---|---|
equals(Object o) | Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object. |
getBmp() | Gets the bitmap (BMP) image format. |
getEmf() | Gets the enhanced metafile (EMF) image format. |
getExif() | Gets the Exchangeable Image File (Exif) format. |
getGif() | Gets the Graphics Interchange Format (GIF) image format. |
getGuid() | Gets a Guid string that represents this ImageFormat object. |
getIcon() | Gets the Windows icon image format. |
getJpeg() | Gets the Joint Photographic Experts Group (JPEG) image format. |
getMemoryBmp() | Gets the format of a bitmap in memory. |
getPng() | Gets the W3C Portable Network Graphics (PNG) image format. |
getTiff() | Gets the Tagged Image File Format (TIFF) image format. |
getWmf() | Gets the Windows metafile (WMF) image format. |
hashCode() | Returns a hash code value that represents this object. |
isBitmapType() | Determines whether an image format is a bitmap type. |
isMetafileType() | Determines whether an image format is a metafile type. |
isUnknownType() | Determines whether an image format is unknown type. |
toString() | Converts this ImageFormat object to a human-readable string. |
ImageFormat(String guid)
public ImageFormat(String guid)
Initializes a new instance of the ImageFormat class by using the specified Guid string.
Parameters:
Parameter | Type | Description |
---|---|---|
guid | java.lang.String | The Guid string that specifies a particular image format. |
equals(Object o)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | The object to test. |
Returns: boolean - true if o is an ImageFormat object that is equivalent to this ImageFormat object; otherwise, false.
getBmp()
public static ImageFormat getBmp()
Gets the bitmap (BMP) image format.
Returns: ImageFormat - An ImageFormat object that indicates the bitmap image format.
getEmf()
public static ImageFormat getEmf()
Gets the enhanced metafile (EMF) image format.
Returns: ImageFormat - An ImageFormat object that indicates the enhanced metafile image format.
getExif()
public static ImageFormat getExif()
Gets the Exchangeable Image File (Exif) format.
Returns: ImageFormat - An ImageFormat object that indicates the Exif format.
getGif()
public static ImageFormat getGif()
Gets the Graphics Interchange Format (GIF) image format.
Returns: ImageFormat - An ImageFormat object that indicates the GIF image format.
getGuid()
public String getGuid()
Gets a Guid string that represents this ImageFormat object.
Returns: java.lang.String - A Guid string that represents this ImageFormat object.
getIcon()
public static ImageFormat getIcon()
Gets the Windows icon image format.
Returns: ImageFormat - 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: ImageFormat - An ImageFormat object that indicates the JPEG image format.
getMemoryBmp()
public static ImageFormat getMemoryBmp()
Gets the format of a bitmap in memory.
Returns: ImageFormat - 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: ImageFormat - An ImageFormat object that indicates the PNG image format.
getTiff()
public static ImageFormat getTiff()
Gets the Tagged Image File Format (TIFF) image format.
Returns: ImageFormat - An ImageFormat object that indicates the TIFF image format.
getWmf()
public static ImageFormat getWmf()
Gets the Windows metafile (WMF) image format.
Returns: ImageFormat - An ImageFormat object that indicates the Windows metafile image format.
hashCode()
public int hashCode()
Returns a hash code value that represents this object.
Returns: int - A hash code that represents this object.
isBitmapType()
public boolean isBitmapType()
Determines whether an image format is a bitmap type.
Returns: boolean - 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: boolean - true if an image format is a metafile type; otherwise, false.
isUnknownType()
public boolean isUnknownType()
Determines whether an image format is unknown type.
Returns: boolean - true if an image format is unknown type; otherwise, false.
toString()
public String toString()
Converts this ImageFormat object to a human-readable string.
Returns: java.lang.String - A string that represents this ImageFormat object.