Interface ArrayColorTable<T>

  • All Superinterfaces:
    ColorTable
    All Known Implementing Classes:
    AbstractArrayColorTable, ColorTable16, ColorTable8

    public interface ArrayColorTable<T>
    extends ColorTable
    Interface for all ColorTable implementations that use an array to store their color table information. This interface provides an accessor to that value array and other conveniences, and the generic type of this table corresponds to the array type that is returned.
    Author:
    Mark Hiner, Curtis Rueden
    • Method Detail

      • getValues

        T[] getValues()
        Gets a copy of the entire color table.
      • argb

        int argb​(int i)
        Converts the tuple at the given position into a packed ARGB value.
      • getBits

        int getBits()
        Gets the number of bits in each color component value.
      • getNative

        int getNative​(int comp,
                      int bin)
        Gets an individual value from the color table.

        Value is unsigned with getBits() bits.

        Parameters:
        comp - The color component to query.
        bin - The index into the color table.
        Returns:
        The value of the table at the specified position.