public class TLcdComponentColorLookupTable extends ALcdColorLookupTable
3D table
but it can only transform each component
individually. Hence it is only suitable for color effects that do not mix multiple image
components. For example a negative filter fits these limitations but a hue filter does not.
You can use the builder
to conveniently create component-based lookup
tables.
A component-based lookup table can also be combined with a 3D table to efficiently implement
non-linear color transformations:
3D table
to apply the actual
transformation.ELcdInterpolationType
. The alpha component of the color is unchanged.
Note that the interval
on the component lookup tables are not used.Modifier and Type | Class and Description |
---|---|
static class |
TLcdComponentColorLookupTable.Builder<B extends TLcdComponentColorLookupTable.Builder<B>>
Builder for component-based color lookup table's.
|
Constructor and Description |
---|
TLcdComponentColorLookupTable(TLcdLookupTable aRedLut,
TLcdLookupTable aGreenLut,
TLcdLookupTable aBlueLut)
Creates a component-based color lookup table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TLcdLookupTable |
getBlueLookupTable()
Returns the lookup table for the blue color component.
|
TLcdLookupTable |
getGreenLookupTable()
Returns the lookup table for the green color component.
|
TLcdLookupTable |
getRedLookupTable()
Returns the lookup table for the red color component.
|
int |
hashCode() |
static TLcdComponentColorLookupTable.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
public TLcdComponentColorLookupTable(TLcdLookupTable aRedLut, TLcdLookupTable aGreenLut, TLcdLookupTable aBlueLut)
aRedLut
- the lookup table for the red color componentaGreenLut
- the lookup table for the green color componentaBlueLut
- the lookup table for the blue color componentpublic TLcdLookupTable getRedLookupTable()
public TLcdLookupTable getGreenLookupTable()
public TLcdLookupTable getBlueLookupTable()
public static TLcdComponentColorLookupTable.Builder<?> newBuilder()