Class Colormap


  • public final class Colormap
    extends Object
    Represents a raster color map.
    Since:
    100.4.0
    • Method Detail

      • create

        public static Colormap create​(Iterable<Integer> colors)
        Creates a Colormap with the given collection of integer, 0xAARRGGBB, colors.
        Parameters:
        colors - a collection of colors, the color at the 0th index is used for raster pixels that have a value of 0, color at 1st index for value 1, and so on.
        Returns:
        a Colormap instance
        Throws:
        IllegalArgumentException - if colors is null
        Since:
        100.4.0