Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using EffectFactory class on bitmap - Android

I want to use EffectFactory.EFFECT_LOMOISH in my android application. I want to apply this effect on my bitmap but don't know how to do it. I referred both package-summery and EffectFactory links, btu couldn't get much idea. Can anybody guide me to implement this functionality with bitmap. Thank you.

like image 728
Zankhna Avatar asked Oct 21 '22 23:10

Zankhna


1 Answers

This probably isn't the answer you want to hear, but (roughly speaking) you can't. The EffectFactory/Effects are not meant to be used with canvas/bitmaps, but are to be applied to OpenGL textures.

Look at the Android sample (this link doesn't give individual details, but you can create it in Eclipse via new project from sample option) project HelloEffects.

HelloEffects shows how you can use these Effects.

like image 96
James Avatar answered Oct 23 '22 22:10

James