com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ImageFormat



  • public final class ImageFormat
    extends Object
    Specifies the file format of the image. Cannot be extended.
    • 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

      • 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.
      • 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.
      • 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.
        Overrides:
        equals in class Object
        Parameters:
        o - The object to test.
        Returns:
        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.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code that represents this object.
      • toString

        public String toString()
        Converts this ImageFormat object to a human-readable string.
        Overrides:
        toString in class Object
        Returns:
        A string that represents this ImageFormat object.