invert method

LuminanceSource invert()

@return a wrapper of this {@code LuminanceSource} which inverts the luminances it returns -- black becomes white and vice versa, and each value becomes (255-value).

Implementation

LuminanceSource invert() {
  return InvertedLuminanceSource(this);
}