Xamarin.Android.Glide.Transformations 4.3.0.1

dotnet add package Xamarin.Android.Glide.Transformations --version 4.3.0.1                
NuGet\Install-Package Xamarin.Android.Glide.Transformations -Version 4.3.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin.Android.Glide.Transformations" Version="4.3.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.Android.Glide.Transformations --version 4.3.0.1                
#r "nuget: Xamarin.Android.Glide.Transformations, 4.3.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.Android.Glide.Transformations as a Cake Addin
#addin nuget:?package=Xamarin.Android.Glide.Transformations&version=4.3.0.1

// Install Xamarin.Android.Glide.Transformations as a Cake Tool
#tool nuget:?package=Xamarin.Android.Glide.Transformations&version=4.3.0.1                

Xamarin binding for glide-transformations

Glide Transformations

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

Please feel free to use this.

Demo

Original Image

<img src="art/demo-org.jpg" width="30%">

Transformations

<img src="art/demo.gif" width="50%">

How do I use it?

Step 1

Gradle
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

Step 2

Set Glide Transform.

Glide.With(this).Load(Resource.Drawable.demo)
  .Apply(RequestOptions.BitmapTransform(new BlurTransformation(25, 3)))
  .Into(imageView)

Advanced Step 3

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))

Transformations

Crop

  • CropTransformation
  • CropCircleTransformation
  • CropCircleWithBorderTransformation
  • 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

License

Copyright (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.
Product Compatible and additional computed target framework versions.
.NET net6.0-android31.0 is compatible.  net7.0-android was computed.  net8.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Xamarin.Android.Glide.Transformations:

Package Downloads
Xamarin.Android.Glide.Transformations.Gpu

Binding for https://github.com/wasabeef/glide-transformations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.3.0.1 27,807 6/1/2023
4.3.0 32,061 10/24/2021
1.0.0 375 10/14/2021

Update to dotnet 6