Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGENativeLibrary.cgeFilterImage_MultipleEffects 返回的bitmap为null #465

Closed
ElaineRen opened this issue Jun 17, 2020 · 1 comment
Closed

Comments

@ElaineRen
Copy link

最近android项目升级, 由support库升级到 androidx库之后,CGENativeLibrary.cgeFilterImage_MultipleEffects 返回的bitmap 为null,为什么?应该从哪里排查?

@ElaineRen
Copy link
Author

问题解决了,我在升级一些库的时候 做了一些优化,项目中使用的是glide 加载图片的框架,之前设置的全局的bitmap的格式是ARGB_8888,做了一些优化, 滤镜加载的bitmap 要求是8888格式的(libCGE: Bitmap format is not RGBA_8888!) 导致滤镜返回的bitmap为null,单独强制需要加载的bitmap格式为8888就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant