Binding for https://github.com/wasabeef/glide-transformations
$ dotnet add package Xamarin.Android.Glide.TransformationsAn Android transformation library providing a variety of image transformations for Glide.
Please feel free to use this.
PM Install-Package Xamarin.Android.Glide.Transformations -Version 4.3.0.1
# If you want to use the GPU Filters
PM Install-Package Xamarin.Android.Glide.Transformations.Gpu -Version 2.1.0.1
Set Glide Transform.
Glide.With(this).Load(Resource.Drawable.demo)
.Apply(RequestOptions.BitmapTransform(new BlurTransformation(25, 3)))
.Into(imageView)
You can set a multiple transformations.
val multi = new MultiTransformation<Bitmap>(
new BlurTransformation(25),
new RoundedCornersTransformation(128, 0, CornerType.Bottom))))
Glide.With(this).Load(Resource.Drawable.demo)
.Apply(RequestOptions.BitmapTransform(multi))
.Into(imageView))
CropTransformationCropCircleTransformationCropCircleWithBorderTransformationCropSquareTransformationRoundedCornersTransformationColorFilterTransformationGrayscaleTransformationBlurTransformationMaskTransformationWill require add dependencies for GPUImage.
ToonFilterTransformationSepiaFilterTransformationContrastFilterTransformationInvertFilterTransformationPixelationFilterTransformationSketchFilterTransformationSwirlFilterTransformationBrightnessFilterTransformationKuwaharaFilterTransformationVignetteFilterTransformationCopyright (C) 2020 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.