com.jhlabs.image

Class GrayscaleFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class GrayscaleFilter
extends PointFilter

A filter which converts an image to grayscale using the NTSC brightness calculation.

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

GrayscaleFilter()

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

GrayscaleFilter

public GrayscaleFilter()

Method Details

filterRGB

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

toString

public String toString()