Image.transparentChroma

Changes the opacity value associated with any pixel between low and high to the value defined by opacity.

As there is one fuzz value for the all the channels, the transparent method is not suitable for the operations like chroma, where the tolerance for similarity of two color components (RGB) can be different, Thus we define this method take two target pixels (one low and one high) and all the pixels of an image which are lying between these two pixels are made transparent.

class Image
void
transparentChroma

Parameters

low Color

The low end of the pixel range.

high Color

The high end of the pixel range.

opacity Quantum

The desired opacity.

invert bool

If true, all pixels outside the range are set to opacity.

Meta