Class IntRGBConverter

    • Constructor Detail

    • Method Detail

      • skip

        public void skip()
        Description copied from interface: PixelIterator
        Skips a row of pixel data.
      • next

        public void next(int[] dest)
        Description copied from interface: IntPixelIterator
        Reads a row of pixel data.
        Specified by:
        next in interface  IntPixelIterator
        Parameters:
        dest - the array to store the pixels in
      • getMinimumArrayLength

        public int getMinimumArrayLength()
        Description copied from interface: PixelIterator
        The minimum length an array should be that is used to retrieve a row of pixel data.

        When you call next(array) on this iterator, the array's length should at least be getMinimumArrayLength().

        (Note the next() method is not in this interface: it exists in the subinterfaces: BytePixelIterator and IntPixelIterator.

        You should not assume you know what this value is. For example: If an iterator is actually a 4-byte iterator that is reducing to a 3-byte format, then this value may be 4*getWidth() instead of the expected 3*getWidth(). Conversion and scaling is performed in the original array if possible to minimize overhead.

        Specified by:
        getMinimumArrayLength in interface  PixelIterator
        Returns:
        The minimum length an array should be that is used to retrieve a row of pixel data.
      • getType

        public int getType()
        Description copied from interface: PixelIterator
        The format of this pixel iterator. This will probably be one of the BufferedImage type constants.
      • getPixelSize

        public int getPixelSize()
        Description copied from interface: PixelIterator
        The number of array elements used to store 1 pixel.

        So in TYPE_4BYTE_ARGB this will be 4, but in TYPE_INT_ARGB this will be 1.

        Specified by:
        getPixelSize in interface  PixelIterator
        Returns:
        the number of array elements used to store 1 pixel.