Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply EffectFactory Effects on CameraPreview

I am trying to make an Android application that lets the user take a picture with lomo effect. The thing is, I want to make the camera preview the image WITH the effect automatically, not take a picture then apply the effect.

I learned how to use CameraPreview on this link. I also found out about EfectFactory class here, which has the effect I want. The problem is, I don't know how to apply efectfactory class on a CameraPreview.

I googled this but didn't find the answer I was looking for.

For the code, I am using the same as how my first link provided.

Can anyone help me on this problem?

Thanks in advance

like image 289
user2552108 Avatar asked Mar 10 '14 03:03

user2552108


1 Answers

You can do below thing:

1) Get bitmap from captured image in GLS Surface view

and then

2) Apply effects using Effect Factory class.

More detail use this link.

like image 58
Mehta Avatar answered Sep 19 '22 18:09

Mehta