public class ColorAdjustmentOperation extends Operation<ColorAdjustmentSettings>
MEMORY_MATH_CONTEXT
Constructor and Description |
---|
ColorAdjustmentOperation() |
Modifier and Type | Method and Description |
---|---|
static void |
changePaintColorMatrix(Paint paint,
ColorAdjustmentSettings settings) |
protected RequestResultI |
doOperation(Operator operator,
ColorAdjustmentSettings settings,
ResultRegionI request)
Start the Operation
|
protected static ColorMatrix |
generateBrightnessMatrix(float brightness) |
protected static ColorMatrix |
generateContrastMatrix(float contrast) |
protected static ColorMatrix |
generateExposureMatrix(float exposure) |
protected static ColorMatrix |
generateSaturationMatrix(float saturation) |
protected java.math.BigDecimal |
getEstimatedMemoryConsumptionFactor(Operator operator,
ColorAdjustmentSettings settings) |
protected java.lang.String |
getIdentifier() |
protected Priority |
getPriority() |
Rect |
getResultRect(Operator operator,
float subSample) |
boolean |
isReady(ColorAdjustmentSettings settings) |
compareTo, equals, getEstimatedMemoryConsumptionFactor, getNecessaryMemory, getPreviousResultRect, getPreviousResultRect, getState, hashCode, isCachable, operatorReady, requestSourceAnswer, runAndDelegate, setLevelProgress, toString
public static void changePaintColorMatrix(Paint paint, ColorAdjustmentSettings settings)
@Nullable protected RequestResultI doOperation(Operator operator, ColorAdjustmentSettings settings, ResultRegionI request)
Operation
doOperation
in class Operation<ColorAdjustmentSettings>
request
- a ResultRegion object hold the request options like position and transformation.@NonNull protected static ColorMatrix generateBrightnessMatrix(float brightness)
@NonNull protected static ColorMatrix generateContrastMatrix(float contrast)
@NonNull protected static ColorMatrix generateExposureMatrix(float exposure)
@NonNull protected static ColorMatrix generateSaturationMatrix(float saturation)
protected java.math.BigDecimal getEstimatedMemoryConsumptionFactor(Operator operator, ColorAdjustmentSettings settings)
getEstimatedMemoryConsumptionFactor
in class Operation<ColorAdjustmentSettings>
protected java.lang.String getIdentifier()
getIdentifier
in class Operation<ColorAdjustmentSettings>
@NonNull protected Priority getPriority()
getPriority
in class Operation<ColorAdjustmentSettings>
public Rect getResultRect(Operator operator, float subSample)
getResultRect
in class Operation<ColorAdjustmentSettings>
public boolean isReady(ColorAdjustmentSettings settings)
isReady
in class Operation<ColorAdjustmentSettings>