Glide Image Transformations

Updated 28 February 2020

Save

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

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home