|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.statik.sampled.IdentityOp
visual.statik.sampled.GrayExceptOp
public class GrayExceptOp
A BufferedImageOp that returns a gray-scale version with one color (in a particular area) left unchanged
Constructor Summary | |
---|---|
GrayExceptOp(int r,
int g,
int b)
Explicit Value Constructor |
|
GrayExceptOp(int r,
int g,
int b,
Metric metric)
Explicit Value Constructor |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
Perform the filtering operation |
void |
setMetric(Metric metric)
Set the Metric to use to calculate the distance between two colors |
Methods inherited from class visual.statik.sampled.IdentityOp |
---|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrayExceptOp(int r, int g, int b)
r
- The red component of the color to leaveg
- The green component of the color to leaveb
- The blue component of the color to leavepublic GrayExceptOp(int r, int g, int b, Metric metric)
r
- The red component of the color to leaveg
- The green component of the color to leaveb
- The blue component of the color to leavemetric
- The Metric to use to determine if two colors are similarMethod Detail |
---|
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)
filter
in interface java.awt.image.BufferedImageOp
filter
in class IdentityOp
src
- The source imagedest
- An empty image in which to srote the result (or null)public void setMetric(Metric metric)
metric
- The Metric to use
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |