Class: QgsSingleBandGrayRenderer

class qgis.core.QgsSingleBandGrayRenderer

Bases: qgis._core.QgsRasterRenderer

Raster renderer pipe for single band gray.

BlackToWhite = 0
class Gradient

Bases: int

WhiteToBlack = 1
block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock
clone(self) → QgsSingleBandGrayRenderer

QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.

contrastEnhancement(self) → QgsContrastEnhancement
create(elem: QDomElement, input: QgsRasterInterface) → QgsRasterRenderer
gradient(self) → QgsSingleBandGrayRenderer.Gradient
grayBand(self) → int
initHistogram()
initStatistics()
legendSymbologyItems(self) → List[Tuple[str, QColor]]
setContrastEnhancement(self, ce: QgsContrastEnhancement)

Takes ownership

setGradient(self, gradient: QgsSingleBandGrayRenderer.Gradient)
setGrayBand(self, band: int)
usesBands(self) → List[int]
writeXml(self, doc: QDomDocument, parentElem: QDomElement)