Package com.luciad.layers.styles
Class RasterStyle
java.lang.Object
com.luciad.layers.styles.RasterStyle
- All Implemented Interfaces:
AutoCloseable
Style for rasters.
Construction of a raster style is done through the Builder
design pattern mechanism.
- Since:
- 2023.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder for raster styles. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.void
close()
boolean
protected void
finalize()
double
Returns the brightness.double
Returns the contrast.android.graphics.Color
Returns the color that is modulated with the raster.int
hashCode()
static RasterStyle.Builder
Creates a new builder with the default values.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
asBuilder
Creates a new builder initialized with all the properties of this style.- Returns:
- the new builder.
-
getBrightness
public double getBrightness()Returns the brightness.The brightness is a value in
[0, 2]
. A value of 1 (the default) leaves the brightness unchanged. Values larger than 1 makes the colors brighter, while a value smaller than 1 makes the colors less bright.- Returns:
- the brightness.
-
getContrast
public double getContrast()Returns the contrast.The contrast is a value in
[0, 2]
. A value of 1 (the default) leaves the contrast unchanged. A value larger than 1 enhances the contrast of dark colors by making them brighter, while a value smaller than 1 enhances the contrast of bright colors by making them darker.- Returns:
- the contrast.
-
getModulationColor
@NotNull public android.graphics.Color getModulationColor()Returns the color that is modulated with the raster.For example using a raster with gray-scale colors and a red modulation color will result in a resulting painted raster with red hues.
- Returns:
- the modulation color.
-
hashCode
public int hashCode() -
equals
-