Class AbstractImage

    • Constructor Detail

      • AbstractImage

        public AbstractImage​(ImageInfo info)
        Main constructor
        Parameters:
        info - the image info object associated with this image
    • Method Detail

      • getInfo

        public ImageInfo getInfo()
        Returns an object with basic information (URI, MIME type, intrinsic size) about the image.
        Specified by:
        getInfo in interface Image
        Returns:
        the image information object
      • getSize

        public ImageSize getSize()
        Returns the image's intrinsic size. This is a shortcut for getInfo().getSize().
        Specified by:
        getSize in interface Image
        Returns:
        the image's intrinsic size
      • getColorSpace

        public ColorSpace getColorSpace()
        Returns the image's color space if the information is available.
        Specified by:
        getColorSpace in interface Image
        Returns:
        the color space or null if the color space is unknown or undefined
      • getICCProfile

        public ICC_Profile getICCProfile()
        Returns the ICC color profile if one is associated with the image.
        Specified by:
        getICCProfile in interface Image
        Returns:
        the ICC color profile or null if there's no profile