Android developers must have used the Image Loader’s three leading open source libraries: Glide, Fresco, and Picasso. How to use it, I don’t need to be verbose here, the respective documentation is very clear. You can make a quick quick check on everything you want and make a quick check on everything you want. You can make a quick check on everything you want and make a quick check on everything you want.
Rounded corners, circles, Gaussian blur, mask, clipping, etc., are all common ways to display images in UI design. The three open source libraries here can help you do these things easily, and use them with Glide, Fresco, and Picasso respectively. It’s as simple as adding an extra line of code. They are:
-
Glide Transformations
-
Fresco Processors
-
Fresco Processors
You can make a quick look at everything you want to do, and you can make a quick look at everything you want to do. You can make a quick look at everything you want to do, and you can make a quick look at everything you want to do.
mResultIv = (ImageView) findViewById(R.id.iv_result); Glide.with(this).load(R.mipmap.ic_image_sample)
.into(mResultIv); Copy the code
Review images
Review images
mResultIv = (ImageView) findViewById(R.id.iv_result); Glide.with(this).load(R.mipmap.ic_image_sample) .bitmapTransform(new BlurTransformation(this)) .into(mResultIv);Copy the code
Review images
Review images
Glide.with(this).load(R.mipmap.ic_image_sample)
.bitmapTransform(new RoundedCornersTransformation(this, 24, 0, RoundedCornersTransformation.CornerType.ALL))
.into(mResultIv);Copy the code
Review images
Review images
mResultIv = (ImageView) findViewById(R.id.iv_result); Glide.with(this).load(R.mipmap.ic_image_sample) .bitmapTransform(new MaskTransformation(this, R.mipmap.ic_launcher)) .into(mResultIv);Copy the code
Review images
Review images
mResultIv = (ImageView) findViewById(R.id.iv_result); Glide.with(this).load(R.mipmap.ic_image_sample) .bitmapTransform(new GrayscaleTransformation(this)) .into(mResultIv);Copy the code
Review images
Review images
Glide.with(this).load(R.mipmap.ic_image_sample)
.bitmapTransform(new CropCircleTransformation(this))
.into(mResultIv);Copy the code
Review images
Review images
Here I have just introduced some common image processing, but the power of these three auxiliary libraries also lies in the [GPUImage] support, such as Mosaic, shading and more filters:
-
ToonFilterTransformation
-
SepiaFilterTransformation
-
ContrastFilterTransformation
-
InvertFilterTransformation
-
PixelationFilterTransformation
-
SketchFilterTransformation
-
SwirlFilterTransformation
-
BrightnessFilterTransformation
-
KuwaharaFilterTransformation
-
VignetteFilterTransformation
To learn more about GitHub’s open-source Android resources, check out awesome-Android. The first batch has been compiled and is being updated daily. If you have a good resource, be sure to submit an issue or request and do your part. Standing on the shoulders of giants, can see farther, go higher!
Star address:
https://github.com/Mike-bel/Awesome-Android
Review images
Male, recommend
Focus on programmer programming knowledge, original tutorials, the latest developments and so on. This is the golden age of programming, ShowTime for programmers. We’re not coders, we’re not losers, we’re not coders. We’re coders.
Review images
Popular tweets
All the solutions you can think of are here
★ Android breaks the limit of 64K methods
uI’ve worked hard to learn more than 30 valuable lessons in developing Android Apps
★ This “very 7+1” tips to help you improve your Coding level!
★ Recommended | a mind map to tell you how to quickly start Android novices
Review images
Review images
Star【Awesome-Android】
Review images