ImageFormat
Inheritance: java.lang.Object
public class ImageFormat
Specifies the file format of the image.
Constructors
Constructor | Description |
---|---|
ImageFormat() |
Methods
Method | Description |
---|---|
equals(Object obj) | 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. |
getClass() | |
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. |
getIcon() | Gets the Windows icon image format. |
getImageFormatFromSuffixName(String name) | Get the image format according to suffix name |
getJpeg() | Gets the Joint Photographic Experts Group (JPEG) image format. |
getMemoryBmp() | Gets a memory bitmap image format. |
getName() | Get the string name of this ImageFormat instance |
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() | |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ImageFormat()
public ImageFormat()
equals(Object obj)
public boolean equals(Object obj)
Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | 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.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
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.
getIcon()
public static ImageFormat getIcon()
Gets the Windows icon image format.
Returns: ImageFormat - An ImageFormat object that indicates the Windows icon image format.
getImageFormatFromSuffixName(String name)
public static ImageFormat getImageFormatFromSuffixName(String name)
Get the image format according to suffix name
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | suffix name |
Returns: ImageFormat - >An ImageFormat object according to the suffix name.
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 a memory bitmap image format.
Returns: ImageFormat - An ImageFormat object that indicates the memory bitmap image format.
getName()
public String getName()
Get the string name of this ImageFormat instance
Returns: java.lang.String - The string name of this ImageFormat instance
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 native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |