Package io.scanbot.sdk.imagefilters
Class ContrastFilter
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ContrastFilter extends ParametricFilter implements Parcelable
Contrast adjustment filter.
-
-
Constructor Summary
Constructors Constructor Description ContrastFilter(Map<String, Object> source)
ContrastFilter(JSONObject json)
ContrastFilter(Double contrast)
-
Method Summary
Modifier and Type Method Description String
get_type()
final Double
getContrast()
Contrast adjustment value in the range from -1 to 254 (inclusively). final Unit
setContrast(Double contrast)
Contrast adjustment value in the range from -1 to 254 (inclusively). JSONObject
toJson()
final static ContrastFilter
default()
-
-
Constructor Detail
-
ContrastFilter
ContrastFilter(JSONObject json)
-
ContrastFilter
ContrastFilter(Double contrast)
-
-
Method Detail
-
getContrast
final Double getContrast()
Contrast adjustment value in the range from -1 to 254 (inclusively). Negative values will decrease the contrast, positive values will increase it. Default is 0.0
-
setContrast
final Unit setContrast(Double contrast)
Contrast adjustment value in the range from -1 to 254 (inclusively). Negative values will decrease the contrast, positive values will increase it. Default is 0.0
-
toJson
JSONObject toJson()
-
default
final static ContrastFilter default()
-
-
-
-