@@ -0,0 +1,2210 @@
+/*%0A * Copyright 2017 JessYan%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.jess.arms.http.imageloader.glide;%0A%0Aimport android.graphics.Bitmap;%0Aimport android.support.annotation.IntRange;%0Aimport android.support.annotation.NonNull;%0A%0Aimport com.bumptech.glide.load.Key;%0Aimport com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;%0Aimport com.bumptech.glide.load.resource.bitmap.BitmapTransformation;%0Aimport com.jess.arms.utils.FastBlur;%0A%0Aimport java.security.MessageDigest;%0A%0A/**%0A * ================================================%0A * %E9%AB%98%E6%96%AF%E6%A8%A1%E7%B3%8A%0A * %3Cp%3E%0A * Created by JessYan on 03/04/2018 15:14%0A * %3Ca href=%22mailto:jess.yan.effort@gmail.com%22%3EContact me%3C/a%3E%0A * %3Ca href=%22https://github.com/JessYanCoding%22%3EFollow me%3C/a%3E%0A * ================================================%0A */%0Apublic class BlurTransformation extends BitmapTransformation %7B%0A    private static final String ID = BlurTransformation.class.getName();%0A    private static final byte%5B%5D ID_BYTES = ID.getBytes(Key.CHARSET);%0A    public static final int DEFAULT_RADIUS = 15;%0A    private int mRadius = DEFAULT_RADIUS;%0A%0A    public BlurTransformation(@IntRange(from = 0) int radius) %7B%0A        mRadius = radius;%0A    %7D%0A%0A    @Override%0A    public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) %7B%0A        messageDigest.update(ID_BYTES);%0A%0A    %7D%0A%0A    @Override%0A    protected Bitmap transform(@NonNull BitmapPool pool, @NonNull Bitmap toTransform, int outWidth, int outHeight) %7B%0A        return FastBlur.doBlur(toTransform, mRadius, true);%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        return o instanceof BlurTransformation;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return ID.hashCode();%0A    %7D%0A%7D%0A

Create BlurTransformation