public class TLcdColorLookupTable extends ALcdColorLookupTable
builder
to conveniently create a lookup table.
A color is transformed by using its red, green and blue components as coordinates in the lookup
table. Assuming color components in [0,1], the RGB color (0.0, 0.0, 0.0) is mapped to the table
entry at index (0, 0, 0) and the RGB color (1.0, 1.0, 1.0) to the table entry at index
(w - 1, h - 1, d - 1). The other table entries are uniformly distributed between these. The
values that lie between the table entries are computed depending on the ELcdInterpolationType
.
The alpha component of the output color depends on the TLcdColorLookupTable.AlphaMode
.
Note that the interval
on the lookup table is not used.Modifier and Type | Class and Description |
---|---|
static class |
TLcdColorLookupTable.AlphaMode
An enumeration that defines how the alpha value for the output color is computed.
|
static class |
TLcdColorLookupTable.Builder<B extends TLcdColorLookupTable.Builder<B>>
Builder for color lookup tables.
|
Constructor and Description |
---|
TLcdColorLookupTable(TLcdLookupTable aLookupTable,
TLcdColorLookupTable.AlphaMode aAlphaMode)
Creates a lookup table with user-defined settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TLcdColorLookupTable.AlphaMode |
getAlphaMode()
Returns how the alpha of the output color is computed.
|
TLcdLookupTable |
getLookupTable()
Returns the 3D color lookup table.
|
int |
hashCode() |
static TLcdColorLookupTable.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
public TLcdColorLookupTable(TLcdLookupTable aLookupTable, TLcdColorLookupTable.AlphaMode aAlphaMode)
aLookupTable
- the lookup tableaAlphaMode
- the alpha modepublic TLcdColorLookupTable.AlphaMode getAlphaMode()
public TLcdLookupTable getLookupTable()
public static TLcdColorLookupTable.Builder<?> newBuilder()