TransformsProvider.RemoveContiguousBackground Method

Makes the background of the image transparent.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void RemoveContiguousBackground()

Remarks

The background color is the median color of the image border. For details, see ContiguousBackgroundRemoval.

Examples

C#
using (var bitmap = new Bitmap(@"Images\Product.jpg"))
{
    bitmap.Transforms.RemoveContiguousBackground();
    bitmap.Save(@"Images\Output\ProductNoBackground.png");
}

The original image and the result with the background removed.

The original image and the result with the background removed.

See Also

Reference