Package io.scanbot.sdk.imagefilters
Class BrightnessFilter
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BrightnessFilter extends ParametricFilter implements Parcelable
Brightness adjustment filter.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private Double
brightness
-
Constructor Summary
Constructors Constructor Description BrightnessFilter(Map<String, Object> source)
BrightnessFilter(JSONObject json)
BrightnessFilter(Double brightness)
-
Method Summary
Modifier and Type Method Description String
get_type()
final Double
getBrightness()
Brightness adjustment value in the range from -1 to 1. final Unit
setBrightness(Double brightness)
Brightness adjustment value in the range from -1 to 1. JSONObject
toJson()
final static BrightnessFilter
default()
-
-
Constructor Detail
-
BrightnessFilter
BrightnessFilter(JSONObject json)
-
BrightnessFilter
BrightnessFilter(Double brightness)
-
-
Method Detail
-
getBrightness
final Double getBrightness()
Brightness adjustment value in the range from -1 to 1. Negative values will make the image darker, positive values will make it brighter. Default is 0.0
-
setBrightness
final Unit setBrightness(Double brightness)
Brightness adjustment value in the range from -1 to 1. Negative values will make the image darker, positive values will make it brighter. Default is 0.0
-
toJson
JSONObject toJson()
-
default
final static BrightnessFilter default()
-
-
-
-