Start a Project

Glide Image Transformations

Glide BitmapTransformation can be used as an image manipulation before the image is being displayed.
For example, Crop image, blur image, Mask, Color, etc.

In this blog, we will blur the image with the help of class BitmapTransformation provided by glide.

Step1: Added glide dependencies.

 

Step2: Extend BitmapTransformation class and Override method transform

 

Step3: Transform image
For transforming image, you need to pass an instance of your transformation class as a parameter to .transform().

 

You can write your logic in the method .transform()  to apply other transformations on the bitmap image.

References:

https://github.com/bumptech/glide/wiki/Transformations

Exit mobile version