com.jhlabs.image

Class InvertAlphaFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class InvertAlphaFilter
extends PointFilter

A Filter to invert the alpha channel of an image. This is really only useful for inverting selections, where we only use the alpha channel.

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

InvertAlphaFilter()

Method Summary

int
filterRGB(int x, int y, int rgb)
String
toString()

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

InvertAlphaFilter

public InvertAlphaFilter()

Method Details

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

toString

public String toString()