Class PixelConverter

    • Constructor Detail

    • Method Detail

      • isOpaque

        public static boolean isOpaque(int imageType)
        Returns true if the image type corresponds to an opaque color model.

        If an unexpected image type is encountered, this returns true to err on the side of caution.

      • isOpaque

        public boolean isOpaque()
        Description copied from interface: PixelIterator
        Returns true if this image is guaranteed to be an opaque image. This has to do with the pixel type of this image and not its content. (For example: an image with an alpha channel that happens to be opaque may still return false.)
      • getHeight

        public int getHeight()
        Description copied from interface: PixelIterator
        Returns the height of this image.
        Specified by:
        getHeight in interface  PixelIterator
        Returns:
        the height of this image.
      • getWidth

        public int getWidth()
        Description copied from interface: PixelIterator
        Returns the width of this image.
        Specified by:
        getWidth in interface  PixelIterator
        Returns:
        the width of this image.
      • isDone

        public boolean isDone()
        Description copied from interface: PixelIterator
        Whether this iterator is finished or not
        Specified by:
        isDone in interface  PixelIterator
        Returns:
        true if there is no more pixel data to read.
      • isTopDown

        public boolean isTopDown()
        Description copied from interface: PixelIterator
        Indicates whether this iterator returns rows in a top-to-bottom order or a bottom-to-top order