ImageTaskBase<T>.TrimBorders Method
Definition
- Namespace
- GleamTech.ImageUltimate
- Assembly
- GleamTech.ImageUltimate.dll
TrimBorders(double)
Trims the borders of any color around the current image. The command is added to the chain and not executed until the actual processing is done.
public T TrimBorders(double sensitivity = 0)
Parameters
sensitivitydoubleThe sensitivity of the crop between 0 and 100. The higher the value the more color will be cropped.
Returns
- T
The same instance of this class.
TrimBorders(Color, double)
Trims the borders of a specific color around the current image. The command is added to the chain and not executed until the actual processing is done.
public T TrimBorders(Color borderColor, double sensitivity = 0)
Parameters
borderColorColorThe specific color of the border to remove.
sensitivitydoubleThe sensitivity of the crop between 0 and 100. The higher the value the more color will be cropped.
Returns
- T
The same instance of this class.
Examples
caller
A GleamTech.Drawing.Color parameter/property can be implicitly (automatically) cast from/to other image libraries:
- System.Drawing.Color
- SixLabors.ImageSharp.Color, SixLabors.ImageSharp.PixelFormats
- SkiaSharp.SKColor
- Microsoft.Maui.Graphics.Color