1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-30 05:12:45 +08:00

Update Readme.md (#162)

Added RequestOptions as a prefix to bitmapTransform() function call as it is difficult for many newcomers to understand from where to get bitmapTransform() function
This commit is contained in:
Devansh Maurya 2019-08-15 00:01:32 -03:00 committed by Daichi Furiya
parent 9d4d7990d3
commit ec0e655f0a

View File

@ -44,7 +44,7 @@ Set Glide Transform.
```kotlin ```kotlin
Glide.with(this).load(R.drawable.demo) Glide.with(this).load(R.drawable.demo)
.apply(bitmapTransform(BlurTransformation(25, 3))) .apply(RequestOptions.bitmapTransform(BlurTransformation(25, 3)))
.into(imageView) .into(imageView)
``` ```
@ -57,7 +57,7 @@ val multi = MultiTransformation<Bitmap>(
BlurTransformation(25), BlurTransformation(25),
RoundedCornersTransformation(128, 0, CornerType.BOTTOM)))) RoundedCornersTransformation(128, 0, CornerType.BOTTOM))))
Glide.with(this).load(R.drawable.demo) Glide.with(this).load(R.drawable.demo)
.apply(bitmapTransform(multi)) .apply(RequestOptions.bitmapTransform(multi))
.into(imageView)) .into(imageView))
``` ```