Package uk.ac.starlink.ttools.plot
Class LutSteal
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.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.
-
-
-
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 streamverbose
- 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
-
-