---
title: "TransformsProvider.RemoveContiguousBackground Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_RemoveContiguousBackground.htm
product: "Graphics Mill"
---

# TransformsProvider.RemoveContiguousBackground Method 
 
Makes the background of the image transparent.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void RemoveContiguousBackground()
```
 
## Remarks
 The background color is the median color of the image border. For details, see [ContiguousBackgroundRemoval](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ContiguousBackgroundRemoval.htm.md).
 
## Examples
  
```csharp
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.](https://www.graphicsmill.com/docs/gm/RemoveContiguousBackground.png)
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [RemoveContiguousBackground Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_TransformsProvider_RemoveContiguousBackground.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
