How to create a custom ColorEffect

2019-05-29 12:15发布

问题:

I simply want to know how could i create a custom ColorEffect. As we can set some effects like

EFFECT_AQUA
EFFECT_BLACKBOARD
EFFECT_MONO
EFFECT_NEGATIVE
EFFECT_NONE
EFFECT_POSTERIZE
EFFECT_SEPIA
EFFECT_SOLARIZE
EFFECT_WHITEBOARD

I want to create my own Color effect.

Camera.Parameters parameters = camera.getParameters();
parameters.setColorEffect(Camera.Parameters.EFFECT_AQUA); //like EFFECT_REDDISH 
camera.setParameters(parameters);