Subgroup: Raster
Class: QgsRasterShaderFunction¶
-
class
qgis.core.
QgsRasterShaderFunction
¶ Bases:
sip.wrapper
The raster shade function applies a shader to a pixel at render time - typically used to render grayscale images as false color.
Methods
legendSymbologyItems
maximumValue
minimumMaximumRange
minimumValue
setMaximumValue
Set the maximum value setMinimumValue
Return the minimum value shade
generates and new RGBA value based on one input value Signals
Attributes
-
legendSymbologyItems
(self) → List[Tuple[str, QColor]]¶
-
maximumValue
(self) → float¶
-
minimumMaximumRange
(self) → float¶
-
minimumValue
(self) → float¶
-
setMaximumValue
(self, float)¶ Set the maximum value
-
setMinimumValue
(self, float)¶ Return the minimum value
-
shade
(self, value: float) → Tuple[bool, int, int, int, int]¶ generates and new RGBA value based on one input value
- shade(self, redValue: float, greenValue: float, blueValue: float, alphaValue: float) -> Tuple[bool, int, int, int, int]
- generates and new RGBA value based on original RGBA value
-