android - How to apply one effect over another in GPUImageView? -
i using gpuimageview apply effects on images displayed on gpuimageview, want apply 1 effect on another, applied sepia effect first, on top of that, want apply contrast. how can achieve this?
you need create gpuimagefiltergroup
object , add filters addfilter()
. after can apply resulting filter gpuimageview
. example:
gpuimageview mimageview; private void applyfilters(float contrast, float brightness) { gpuimagefiltergroup filtergroup = new gpuimagefiltergroup(); filtergroup.addfilter(new gpuimagecontrastfilter(contrast)); filtergroup.addfilter(new gpuimagebrightnessfilter(brightness)); mimageview.setfilter(filtergroup); }
Comments
Post a Comment