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