// set brightness first
CustomEffect customEffect = new CustomEffect.Builder(EffectFactory.EFFECT_BRIGHTNESS)
.setParameter("brightness", brightnessValue)
.build();
photoEditor.setFilterEffect(customEffect);
// set blackWhite will replace the brightness effect
customEffect = new CustomEffect.Builder(EffectFactory.EFFECT_BLACKWHITE)
.setParameter("black", 1.0f - simpleCurveValue)
.build();
// brightness effect disappeared after this line.
photoEditor.setFilterEffect(customEffect);
Does this work as intended?
Is there a way to add multiple filters to the same image?
Does this work as intended? Is there a way to add multiple filters to the same image?