public abstract class ALcdBandColorSemantics extends ALcdBandSemantics
type
describes the semantics of the band. In addition for color bands you can also retrieve
the color space
and component index
.
This class cannot be implemented by the user. You can use the
TLcdBandColorSemanticsBuilder
to create new instances.
An image
's pixels are considered to represent a color if:
ALcdBandColorSemantics
.band types
are one of the following:
color space
have the same one.ComponentSampleModel
allows a
different memory byte-order and logical order through its band offsets
.Modifier and Type | Class and Description |
---|---|
static class |
ALcdBandColorSemantics.Type
The type of a band.
|
ALcdBandSemantics.DataType
Modifier and Type | Method and Description |
---|---|
abstract ColorSpace |
getColorSpace()
Returns the color space.
|
abstract int |
getComponentIndex()
Returns the component index in the
color space . |
abstract IndexColorModel |
getPalette()
Returns the palette for a
palette index band. |
abstract ALcdBandColorSemantics.Type |
getType()
Returns the type of the band.
|
abstract boolean |
isAlphaPremultiplied()
Returns if the band is pre-multiplied with alpha.
|
getDataType, getMaxValue, getMinValue, getNoDataValue, getNormalizedRangeMaxValue, getNormalizedRangeMinValue, getNumSignificantBits, isNormalized
public abstract ALcdBandColorSemantics.Type getType()
null
public abstract ColorSpace getColorSpace()
ALcdBandColorSemantics.Type.ALPHA
).public abstract int getComponentIndex()
color space
.
For a alpha
or palette index
band the component index is -1
.-1
public abstract boolean isAlphaPremultiplied()
alpha
band is never pre-multiplied.public abstract IndexColorModel getPalette()
palette index
band.null
.