user2552108
user2552108

Reputation: 1150

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

Upvotes: 10

Views: 1035

Answers (1)

Mehta
Mehta

Reputation: 1226

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.

Upvotes: 2

Related Questions