Class LutSteal


  • public class LutSteal
    extends java.lang.Object
    Acquires a lookup table by scraping pixels from a colour ramp icon.
    Since:
    28 Aug 2013
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      LutSteal​(javax.swing.Icon icon, boolean horiz)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Main method.
      void writeLut​(java.io.OutputStream out, boolean verbose)
      Writes the strip of pixels down the middle of the ramp icon as a lookup table that can be used by the Shaders class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LutSteal

        public LutSteal​(javax.swing.Icon icon,
                        boolean horiz)
        Constructor.
        Parameters:
        icon - icon containing color ramp
        horiz - true to traverse ramp horizontally, false for vertically
    • Method Detail

      • writeLut

        public void writeLut​(java.io.OutputStream out,
                             boolean verbose)
                      throws java.io.IOException
        Writes the strip of pixels down the middle of the ramp icon as a lookup table that can be used by the Shaders class.
        Parameters:
        out - output stream
        verbose - true to write RGB values to stderr
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Main method. Run with -h for help.
        Throws:
        java.io.IOException