BufferedImageOp, Cloneablepublic class ContourFilter extends WholeImageFilter
originalSpace, transformedSpace| 构造器 | 说明 |
|---|---|
ContourFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace) |
Actually filter the pixels.
|
int |
getContourColor() |
|
float |
getLevels() |
|
float |
getOffset() |
|
float |
getScale() |
Returns the scale of the contours.
|
void |
setContourColor(int contourColor) |
|
void |
setLevels(float levels) |
|
void |
setOffset(float offset) |
|
void |
setScale(float scale) |
Specifies the scale of the contours.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, transformSpacepublic void setLevels(float levels)
public float getLevels()
public void setScale(float scale)
scale - the scale of the contours.
min-value 0
max-value 1getScale()public float getScale()
setScale(float)public void setOffset(float offset)
public float getOffset()
public void setContourColor(int contourColor)
public int getContourColor()
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
WholeImageFilterfilterPixels 在类中 WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundsCopyright © 2019. All rights reserved.