public class ColorAdjustmentSettings extends Settings<ColorAdjustmentSettings.Event>
Modifier and Type | Class and Description |
---|---|
static class |
ColorAdjustmentSettings.Event |
Settings.RevertibleField
StateObservable.StateUnbindedExeption
Observable.OnPropertyChangedCallback
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENT
STATE_INVALID_EVENT
Modifier | Constructor and Description |
---|---|
|
ColorAdjustmentSettings() |
protected |
ColorAdjustmentSettings(Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
callPreviewDirty() |
int |
describeContents() |
float |
getBrightness()
Get the current brightness
|
float |
getClarity() |
float |
getContrast()
Get the current contrast
|
float |
getExposure() |
float |
getHighlight() |
float |
getSaturation()
Get the current Saturation.
|
float |
getShadow() |
ColorAdjustmentSettings |
setBrightness(float brightness)
Set image brightness
|
void |
setClarity(float clarity) |
ColorAdjustmentSettings |
setContrast(float contrast)
Set the contrast.
|
void |
setExposure(float exposure) |
void |
setHighlight(float highlight) |
ColorAdjustmentSettings |
setSaturation(float saturation)
Set image saturation.
|
void |
setShadow(float shadow) |
void |
writeToParcel(Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, flagAsDirty, getStateModel, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, onBind, removeCallback
addOnPropertyChangedCallback, removeOnPropertyChangedCallback
public ColorAdjustmentSettings()
protected ColorAdjustmentSettings(Parcel in)
public void callPreviewDirty()
public int describeContents()
describeContents
in class Settings<ColorAdjustmentSettings.Event>
public float getBrightness()
public float getClarity()
public float getContrast()
public float getExposure()
public float getHighlight()
public float getSaturation()
public float getShadow()
public ColorAdjustmentSettings setBrightness(float brightness)
brightness
- A value of 0 maps the color to black. 1 is identity. 2 is white.public void setClarity(float clarity)
public ColorAdjustmentSettings setContrast(float contrast)
contrast
- A value of 0 the image is totally gray. 1 is identity. 1 > intense the contrast.public void setExposure(float exposure)
public void setHighlight(float highlight)
public ColorAdjustmentSettings setSaturation(float saturation)
saturation
- A value of 0 maps the color to gray-scale. 1 is identity. 1 > intense the color.public void setShadow(float shadow)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class Settings<ColorAdjustmentSettings.Event>