1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-12-22 18:30:02 +08:00

Support Glide 4.0.0 (#83)

This commit is contained in:
Daichi Furiya
2017-09-07 00:47:27 -05:00
committed by GitHub
parent 1264e01f6e
commit f6cbe2722d
29 changed files with 495 additions and 689 deletions

View File

@@ -32,7 +32,7 @@ repositories {
}
dependencies {
compile 'jp.wasabeef:glide-transformations:2.0.2'
compile 'jp.wasabeef:glide-transformations:3.0.0'
// If you want to use the GPU Filters
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
}
@@ -44,8 +44,8 @@ Set Glide Transform.
```java
Glide.with(this).load(R.drawable.demo)
.bitmapTransform(new BlurTransformation(context))
.into((ImageView) findViewById(R.id.image));
.apply(bitmapTransform(new BlurTransformation(25)))
.into((ImageView) findViewById(R.id.image));
```
## Advanced Step 3
@@ -53,8 +53,11 @@ Glide.with(this).load(R.drawable.demo)
You can set a multiple transformations.
```java
MultiTransformation multi = new MultiTransformation(
new BlurTransformation(25),
new RoundedCornersTransformation(128, 0, RoundedCornersTransformation.CornerType.BOTTOM))))
Glide.with(this).load(R.drawable.demo)
.bitmapTransform(new BlurTransformation(context, 25), new CropCircleTransformation(context))
.apply(bitmapTransform(multi))
.into((ImageView) findViewById(R.id.image));
```