|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.LutSteal
public class LutSteal
Acquires a lookup table by scraping pixels from a colour ramp icon.
Constructor Summary | |
---|---|
LutSteal(Icon icon,
boolean horiz)
Constructor. |
Method Summary | |
---|---|
static void |
main(String[] args)
Main method. |
void |
writeLut(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 |
---|
public LutSteal(Icon icon, boolean horiz)
icon
- icon containing color ramphoriz
- true to traverse ramp horizontally, false for verticallyMethod Detail |
---|
public void writeLut(OutputStream out, boolean verbose) throws IOException
out
- output streamverbose
- true to write RGB values to stderr
IOException
public static void main(String[] args) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |