public class ColorAdjustmentSettings extends Settings<ColorAdjustmentSettings.Event>
Modifier and Type | Class and Description |
---|---|
static class |
ColorAdjustmentSettings.Event |
Settings.RevertibleField, Settings.SaveState
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ColorAdjustmentSettings> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED
isConfigObject
Modifier | Constructor and Description |
---|---|
|
ColorAdjustmentSettings() |
protected |
ColorAdjustmentSettings(android.os.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 |
getGamma() |
float |
getHighlight() |
float |
getSaturation()
Get the current Saturation.
|
float |
getShadow() |
boolean |
hasNonDefaults() |
ColorAdjustmentSettings |
setBrightness(float brightness)
Set image brightness
|
void |
setClarity(float clarity) |
ColorAdjustmentSettings |
setContrast(float contrast)
Set the contrast.
|
void |
setExposure(float exposure) |
void |
setGamma(float gamma) |
void |
setHighlight(float highlight) |
ColorAdjustmentSettings |
setSaturation(float saturation)
Set image saturation.
|
void |
setShadow(float shadow) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
createSaveState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, revertState, saveInitState, saveState
addCallback, addCallback, getSettingsHandler, getStateModel, hasModelNonDefaultValue, notifyPropertyChanged, onBind, onBind, removeCallback, removeCallback
public static final android.os.Parcelable.Creator<ColorAdjustmentSettings> CREATOR
public ColorAdjustmentSettings()
protected ColorAdjustmentSettings(android.os.Parcel in)
public void callPreviewDirty()
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<ColorAdjustmentSettings.Event>
public float getBrightness()
public float getClarity()
public float getContrast()
public float getExposure()
public float getGamma()
public float getHighlight()
public float getSaturation()
public float getShadow()
public boolean hasNonDefaults()
hasNonDefaults
in class Settings<ColorAdjustmentSettings.Event>
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 setGamma(float gamma)
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(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<ColorAdjustmentSettings.Event>