---
title: "TransformsProvider.Maximum Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Maximum_1_e1836fc4.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# TransformsProvider.Maximum Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Applies a maximum filter (also known as erosion) to the bitmap.
 
**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 Maximum(int radius
)
```
 
### Parameters
 
 - radius
     - Type: System.Int32
The radius of the filter in pixels.
 
## Remarks
  
Maximum filter is a non-linear filter which works in the following way: for each pixel it searches pixel with maximum brightness in "running window" of the radius specified with *radius* parameter. This pixel is copied to the result bitmap.
 
That's why if you apply this filter on the image with has black objects on white background (for example text), they will be *erosed*.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
