Class: QgsMultiBandColorRenderer

class qgis.core.QgsMultiBandColorRenderer

Bases: QgsRasterRenderer

Renderer for multiband images with the color components

Methods

block

param bandNo

blueBand

rtype

int

blueContrastEnhancement

rtype

QgsContrastEnhancement

clone

QgsMultiBandColorRenderer cannot be copied.

create

param elem

greenBand

rtype

int

greenContrastEnhancement

rtype

QgsContrastEnhancement

initHistogram

initStatistics

redBand

rtype

int

redContrastEnhancement

rtype

QgsContrastEnhancement

renderColorForNodataPixel

setBlueBand

param band

setBlueContrastEnhancement

Takes ownership

setGreenBand

param band

setGreenContrastEnhancement

Takes ownership

setRedBand

param band

setRedContrastEnhancement

Takes ownership

toSld

param doc

usesBands

rtype

List[int]

writeXml

param doc

block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock
Parameters
Return type

QgsRasterBlock

blueBand(self) → int
Return type

int

blueContrastEnhancement(self) → QgsContrastEnhancement
Return type

QgsContrastEnhancement

clone(self) → QgsMultiBandColorRenderer

QgsMultiBandColorRenderer cannot be copied. Use clone() instead.

Return type

QgsMultiBandColorRenderer

create(elem: QDomElement, input: QgsRasterInterface) → QgsRasterRenderer
Parameters
Return type

QgsRasterRenderer

greenBand(self) → int
Return type

int

greenContrastEnhancement(self) → QgsContrastEnhancement
Return type

QgsContrastEnhancement

initHistogram()
initStatistics()
redBand(self) → int
Return type

int

redContrastEnhancement(self) → QgsContrastEnhancement
Return type

QgsContrastEnhancement

renderColorForNodataPixel()
setBlueBand(self, band: int)
Parameters

band (int) –

setBlueContrastEnhancement(self, ce: QgsContrastEnhancement)

Takes ownership

Parameters

ce (QgsContrastEnhancement) –

setGreenBand(self, band: int)
Parameters

band (int) –

setGreenContrastEnhancement(self, ce: QgsContrastEnhancement)

Takes ownership

Parameters

ce (QgsContrastEnhancement) –

setRedBand(self, band: int)
Parameters

band (int) –

setRedContrastEnhancement(self, ce: QgsContrastEnhancement)

Takes ownership

Parameters

ce (QgsContrastEnhancement) –

toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str] = {})
Parameters
  • doc (QDomDocument) –

  • element (QDomElement) –

  • props (Dict[str) –

usesBands(self) → List[int]
Return type

List[int]

writeXml(self, doc: QDomDocument, parentElem: QDomElement)
Parameters
  • doc (QDomDocument) –

  • parentElem (QDomElement) –