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
(
,
Quantum opacity = TransparentOpacity
,
bool invert = false
)

Parameters

opacity
Type: Quantum

The desired opacity.

invert
Type: bool

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

Meta