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

how to add Blur Effect using Kotlin #43

Open
AgungLaksana opened this issue Mar 10, 2019 · 1 comment
Open

how to add Blur Effect using Kotlin #43

AgungLaksana opened this issue Mar 10, 2019 · 1 comment

Comments

@AgungLaksana
Copy link

I am sorry if this is trivial, but I am a beginner. and currently I am using Kotlin. I want to blur my image after downloading using picasso.

and here is the code I use:

Picasso.get()
           .load(currentEvent.posterDownloadPath)
           .transform(BlurTransformation(25,3))
           .into(recommendedEventViewHolder.blurryImageView)

but unfortunately I have error like in this image: https://i.stack.imgur.com/Nvq53.png

so how to properly use BlurTransformation effect ?

@AgungLaksana
Copy link
Author

I finally find out why I still have the error, i.stack.imgur.com/uyEoF.png . previously I add wasabeef transformation for GLIDE, and when I choose the wrong BlurTransformation class, I choose glide instead of Picasso. problem solved, thanks

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