Image.opaque

Changes all pixels having the target color to the fill color.

class Image
void
opaque

Parameters

target Color

The color to be replaced.

fill Color

The replacement color.

invert bool

If true, the target pixels are all the pixels that are not the target color.

channel ChannelType

The affected channels.

Meta