RasterPaint¶
Namespace: ThinkGeo.Core.Styling
The resolved paint of one raster style layer at one zoom.
public struct RasterPaint
Inheritance object → ValueType → RasterPaint
Remarks:
Every property here is zoom-only. The style spec does not allow raster paint to be driven by feature attributes - a raster tile carries no features to drive it with - so this resolves through a plain zoom function like circle paint does, and none of the data-driven machinery fill and line paint need applies.
Properties¶
Opacity¶
Gets the tile opacity, 0 to 1.
public float Opacity { get; }
Property Value¶
HueRotate¶
Gets the hue rotation in degrees.
public float HueRotate { get; }
Property Value¶
BrightnessMin¶
Gets the value the darkest texel is lifted to, 0 to 1.
public float BrightnessMin { get; }
Property Value¶
BrightnessMax¶
Gets the value the brightest texel is pulled down to, 0 to 1.
public float BrightnessMax { get; }
Property Value¶
Saturation¶
Gets the saturation adjustment, -1 to 1.
public float Saturation { get; }
Property Value¶
Contrast¶
Gets the contrast adjustment, -1 to 1.
public float Contrast { get; }
Property Value¶
Resampling¶
Gets how the tile's texels are sampled.
public RasterResampling Resampling { get; }
Property Value¶
FadeDurationInMilliseconds¶
Gets how long, in milliseconds, a tile fades in the first time it is shown. The spec default is 300; 0 shows it at once.
public float FadeDurationInMilliseconds { get; }
Property Value¶
Constructors¶
RasterPaint(float, float, float, float, float, float, RasterResampling, float)¶
Initializes a new instance of the RasterPaint struct.
RasterPaint(float opacity, float hueRotate, float brightnessMin, float brightnessMax, float saturation, float contrast, RasterResampling resampling, float fadeDurationInMilliseconds)
Parameters¶
opacity float
Tile opacity, 0 to 1.
hueRotate float
Hue rotation in degrees.
brightnessMin float
Value the darkest texel is lifted to, 0 to 1.
brightnessMax float
Value the brightest texel is pulled down to, 0 to 1.
saturation float
Saturation adjustment, -1 to 1.
contrast float
Contrast adjustment, -1 to 1.
resampling RasterResampling
How texels are sampled.
fadeDurationInMilliseconds float
How long a newly shown tile fades in over.