SubtractionFilter

class SubtractionFilter(icon: Icon) : RGBImageFilter(source)

Interprets the given icon as a mask in which non-empty pixels indicate which pixels should be removed.

Constructors

Link copied to clipboard
constructor(icon: Icon)

Properties

Link copied to clipboard
private val mask: BufferedImage?

A buffered copy of the icon.

Functions

Link copied to clipboard
open override fun filterRGB(x: Int, y: Int, rgb: Int): Int

Filters the given rgb color through the icon at the point (x, y).