Image.transparent

Changes the opacity value of all the pixels that match color to the value specified by opacity. By default the pixel must match exactly, but you can specify a tolerance level by setting the fuzz attribute on the image.

class Image
void
transparent

Parameters

opacity Quantum

The desired opacity.

invert bool

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

Meta