|
|
|
@ -1,15 +1,12 @@ |
|
|
|
|
package io.legado.app.help.glide |
|
|
|
|
|
|
|
|
|
import android.annotation.TargetApi |
|
|
|
|
import android.graphics.Bitmap |
|
|
|
|
import android.os.Build |
|
|
|
|
import androidx.annotation.IntRange |
|
|
|
|
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool |
|
|
|
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop |
|
|
|
|
import io.legado.app.utils.stackBlur |
|
|
|
|
import java.security.MessageDigest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 模糊 |
|
|
|
|
* @radius: 0..25 |
|
|
|
@ -18,7 +15,6 @@ class BlurTransformation( |
|
|
|
|
@IntRange(from = 0, to = 25) private val radius: Int |
|
|
|
|
) : CenterCrop() { |
|
|
|
|
|
|
|
|
|
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) |
|
|
|
|
override fun transform( |
|
|
|
|
pool: BitmapPool, |
|
|
|
|
toTransform: Bitmap, |
|
|
|
|