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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for raster styles. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.voidclose()booleanprotected voidfinalize()doubleReturns the brightness.doubleReturns the contrast.android.graphics.ColorReturns the color that is modulated with the raster.inthashCode()static RasterStyle.BuilderCreates a new builder with the default values.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein 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
-