public class ColorAdjustmentSettings extends Settings<ColorAdjustmentSettings.Event>
| Modifier and Type | Class and Description |
|---|---|
static class |
ColorAdjustmentSettings.Event |
Settings.RevertibleFieldStateObservable.StateUnbindedExeption| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ColorAdjustmentSettings> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENTSTATE_INVALID, STATE_INVALID_EVENT| Modifier | Constructor and Description |
|---|---|
|
ColorAdjustmentSettings() |
protected |
ColorAdjustmentSettings(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
float |
getBrightness()
Get the current brightness
|
float |
getContrast()
Get the current contrast
|
float |
getSaturation()
Get the current Saturation.
|
ColorAdjustmentSettings |
setBrightness(float brightness)
Set image brightness
|
ColorAdjustmentSettings |
setContrast(float contrast)
Set the contrast.
|
ColorAdjustmentSettings |
setSaturation(float saturation)
Set image saturation.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isRevertible, revertState, saveInitState, saveStateaddCallback, getStateModel, invalidate, isFrozen, isInvalidateble, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, onBind, removeCallbackpublic static final android.os.Parcelable.Creator<ColorAdjustmentSettings> CREATOR
public ColorAdjustmentSettings()
protected ColorAdjustmentSettings(android.os.Parcel in)
public float getSaturation()
public ColorAdjustmentSettings setSaturation(float saturation)
saturation - A value of 0 maps the color to gray-scale. 1 is identity. 1 > intense the color.public float getBrightness()
public ColorAdjustmentSettings setBrightness(float brightness)
brightness - A value of 0 maps the color to black. 1 is identity. 2 is white.public float getContrast()
public ColorAdjustmentSettings setContrast(float contrast)
contrast - A value of 0 the image is totally gray. 1 is identity. 1 > intense the contrast.public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class Settings<ColorAdjustmentSettings.Event>public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Settings<ColorAdjustmentSettings.Event>