BufferedImageOp, Cloneablepublic class ContrastFilter extends TransferFilter
canFilterIndexColorModelbTable, gTable, initialized, rTable| 构造器 | 说明 |
|---|---|
ContrastFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
getBrightness() |
Get the filter brightness.
|
float |
getContrast() |
Get the filter contrast.
|
void |
setBrightness(float brightness) |
Set the filter brightness.
|
void |
setContrast(float contrast) |
Set the filter contrast.
|
String |
toString() |
|
protected float |
transferFunction(float f) |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBsetDimensionsfilter, filterRGB, getLUT, initialize, makeTableprotected float transferFunction(float f)
transferFunction 在类中 TransferFilterpublic void setBrightness(float brightness)
brightness - the brightness in the range 0 to 1 min-value 0
max-value 0getBrightness()public float getBrightness()
setBrightness(float)public void setContrast(float contrast)
contrast - the contrast in the range 0 to 1
min-value 0
max-value 0getContrast()public float getContrast()
setContrast(float)Copyright © 2019. All rights reserved.