This processor removes pixels from an Image and automatically resizes it.
Method Declaration |
Copy Code |
---|---|
public static ImageFactory RemovePixel(this ImageFactory imageFactory, RemovePixelSettings settings) |
Color | Set the color to be removed from the target element (System.Drawing.Color). |
ColorTolerance | Set the color tolerance for removing pixels. Color Tolerance represents the tonal range of colors that will be removed taking the specified color as starting point. If you enter 0, only adjacent pixels of exactly the same tone as the specified color will be removed; otherwise, a wider range of tones will be removed. |
ScanDirection | Set the direction of the pixel scanning process.
(Devesprit.ImageProcessor.Plugins.AdvancedEffects.ScanDirection) |
Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll
Example |
Copy Code |
---|---|
new ImageFactory().Load(@"My-Image-Path") .RemovePixel(new RemovePixelSettings() {Color = Color.FromArgb(1, 155, 165, 201), ColorTolerance = 50}); |
Original
Result