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

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -