问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/19358911/using-effectfactory-class-on-bitmap-android