Skip to main content

Function: invertRgbTransferFunction()

invertRgbTransferFunction(rgbTransferFunction): void

A utility that can be used to invert (in place) an RgbTransferFunction.

Parameters

rgbTransferFunction: vtkColorTransferFunction

Returns

void

Example

Grabbing a reference to the RGB Transfer function from the viewport:

const rgbTransferFunction = viewport
.getActor()
.getProperty()
.getRGBTransferFunction(0);

rgbTransferFunction.setRange(0, 5);

invertRgbTransferFunction(rgbTransferFunction);

See

ColorTransferFunction

Defined in

packages/core/src/utilities/invertRgbTransferFunction.ts:22