com.groupdocs.editor.htmlcss.resources.images

Class ImageType

  • java.lang.Object
    • com.aspose.ms.System.ValueType<T>
      • com.aspose.ms.lang.Struct<ImageType>
        • com.groupdocs.editor.htmlcss.resources.images.ImageType
  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ImageType>, IResourceType


    public class ImageType
    extends com.aspose.ms.lang.Struct<ImageType>
    implements com.aspose.ms.System.IEquatable<ImageType>, IResourceType

    Represents one supportable image type, supports both raster and vector types

    • Constructor Detail

      • ImageType

        public ImageType()
    • Method Detail

      • equals

        public boolean equals(ImageType other)

        Determines whether this instance is equal with specified "ImageType" instance

        Parameters:
        other -
        Returns:
      • equals

        public boolean equals(Object obj)

        Determines whether this instance is equal with specified uncasted object, which presumably is another "ImageType" instance

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<ImageType>
        Overrides:
        equals in class Object
        Parameters:
        obj -
        Returns:
      • getBmp

        public static ImageType getBmp()

        BMP image type

      • getFileExtension

        public String getFileExtension()

        File extension (without dot character) of a particular image type in lower case

        Specified by:
        getFileExtension in interface IResourceType
      • getGif

        public static ImageType getGif()

        GIF image type

      • getIcon

        public static ImageType getIcon()

        ICON image type

      • getJpeg

        public static ImageType getJpeg()

        JPEG image type

      • getPng

        public static ImageType getPng()

        PNG image type

      • getSvg

        public static ImageType getSvg()

        SVG vector image type

      • getUndefined

        public static ImageType getUndefined()

        Undefined image type - special value, which should not normally occur

      • hashCode

        public int hashCode()

        Returns a hash-code, which is a constant number for this specific value type

        Overrides:
        hashCode in class Object
        Returns:
      • op_Equality

        public static boolean op_Equality(ImageType first,
                          ImageType second)

        Defines whether two specific ImageType instances are equal

        Parameters:
        first -
        second -
        Returns:
      • op_Inequality

        public static boolean op_Inequality(ImageType first,
                            ImageType second)

        Defines whether two specific ImageType instances are not equal

        Parameters:
        first -
        second -
        Returns:
      • parseFromFilenameWithExtension

        public static ImageType parseFromFilenameWithExtension(String filename)

        Returns ImageType value, which is equivalent of filename extension, which is extracted from specified filename

        Parameters:
        filename -
        Returns:
      • parseFromMime

        public static ImageType parseFromMime(String mimeCode)

        Returns ImageType value, which is equivalent of specified MIME code

        Parameters:
        mimeCode -
        Returns: