Class LutSteal
java.lang.Object
uk.ac.starlink.ttools.plot.LutSteal
Acquires a lookup table by scraping pixels from a colour ramp icon.
- Since:
- 28 Aug 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method.voidwriteLut(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.
-
Constructor Details
-
LutSteal
Constructor.- Parameters:
icon- icon containing color ramphoriz- true to traverse ramp horizontally, false for vertically
-
-
Method Details
-
writeLut
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:
IOException
-
main
Main method. Run with -h for help.- Throws:
IOException
-