Using EffectFactory class on bitmap - Android

有些话、适合烂在心里 提交于 2019-12-22 06:58:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!