在位图上使用EffectFactory类 - Android [英] Using EffectFactory class on bitmap - Android

查看:159
本文介绍了在位图上使用EffectFactory类 - Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Android应用程序中使用 EffectFactory.EFFECT_LOMOISH 。我想在我的位图上应用此效果,但不知道如何操作。我提到了 package-summery EffectFactory 链接,btu无法理解。任何人都可以指导我使用位图实现此功能。
谢谢。

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.

推荐答案

这可能不是你想听到的答案,但(粗略地说)你不能。 EffectFactory / Effects并不适用于canvas / bitmaps,而是应用于OpenGL纹理。

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.

查看Android 示例(此链接不提供个别详细信息,但您可以通过示例选项中的新项目在Eclipse中创建它)项目HelloEffects。

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显示了如何使用这些效果。

HelloEffects shows how you can use these Effects.

这篇关于在位图上使用EffectFactory类 - Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆