android glide滤镜,GitHub - h79314711/glide-transformations: 图片裁剪滤镜等

Glide Transformations是一个Android库,提供了多种Glide图片转换效果,包括模糊、裁剪、圆形、圆角等。通过添加依赖并简单调用,即可在应用中实现图片的美化处理。此外,还支持GPU滤镜功能,丰富了图片效果的选择。
摘要由CSDN通过智能技术生成

Glide Transformations

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416e64726f6964253230417273656e616c2d676c6964652d2d7472616e73666f726d6174696f6e732d627269676874677265656e2e7376673f7374796c653d666c6174

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322d626c75652e737667

68747470733a2f2f6170692e62696e747261792e636f6d2f7061636b616765732f77617361626565662f6d6176656e2f676c6964652d7472616e73666f726d6174696f6e732f696d616765732f646f776e6c6f61642e737667

An Android transformation library providing a variety of image transformations for Glide.

Please feel free to use this.

Are you using Picasso or Fresco?

Demo

Original Image

d25231cd92ca68a0958c61ef68a6324c.png

Transformations

demo.gif

How do I use it?

Step 1

Gradle

repositories {

jcenter()

}

dependencies {

compile 'jp.wasabeef:glide-transformations:2.0.2'

// If you want to use the GPU Filters

compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'

}

Step 2

Set Glide Transform.

Glide.with(this).load(R.drawable.demo)

.bitmapTransform(new BlurTransformation(context))

.into((ImageView) findViewById(R.id.image));

Advanced Step 3

You can set a multiple transformations.

Glide.with(this).load(R.drawable.demo)

.bitmapTransform(new BlurTransformation(context, 25), new CropCircleTransformation(context))

.into((ImageView) findViewById(R.id.image));

Transformations

Crop

CropTransformation, CropCircleTransformation, CropSquareTransformation,

RoundedCornersTransformation

Color

ColorFilterTransformation, GrayscaleTransformation

Blur

BlurTransformation

Mask

MaskTransformation

GPU Filter (use GPUImage)

Will require add dependencies for GPUImage.

ToonFilterTransformation, SepiaFilterTransformation, ContrastFilterTransformation

InvertFilterTransformation, PixelationFilterTransformation, SketchFilterTransformation

SwirlFilterTransformation, BrightnessFilterTransformation, KuwaharaFilterTransformation

VignetteFilterTransformation

Applications using Glide Transformations

Please ping me or send a pull request if you would like to be added here.

Developed By

Daichi Furiya (Wasabeef) - dadadada.chop@gmail.com

e071fc039c700c5ec01e309b67191a88.png

Contributions

Any contributions are welcome!

Contributers

Thanks

Inspired by Picasso Transformations in TannerPerrien.

License

Copyright 2017 Wasabeef

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值