---
title: "TransformsProvider.Shadow Method (Color, Single, Single, Single, Single, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Shadow_6_06a6e7ea.htm
product: "Graphics Mill"
---

# TransformsProvider.Shadow Method (Color, Single, Single, Single, Single, Boolean)
 
Applies a shadow effect to the bitmap using the specified settings.
 
**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 Shadow(Color shadowColor,float horizontalOffset,float verticalOffset,float radius,float threshold,bool enlargeToFit
)
```
 
### Parameters
 
 - shadowColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
A [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) of this shadow.

 - horizontalOffset
     - Type: System.Single
The horizontal offset of the shadow.

 - verticalOffset
     - Type: System.Single
The vertical offset of the shadow.

 - radius
     - Type: System.Single
The blur radius used to blur the shadow.

 - threshold
     - Type: System.Single
The higher the threshold, the less shadows are cast.

 - enlargeToFit
     - Type: System.Boolean
 `true` if the image fits an entire shadow; otherwise, `false`.
 
## Remarks
  
When you apply this effect, the image drops a shadow with specified parameters (taking into account transparent areas of the image). This effect is ideal for creating artistic texts, logos, etc.
 
**Note** 
If the bitmap does not have an alpha channel (e.g. its pixel format is [Format24bppRgb](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_Format24bppRgb.htm.md)), alpha channel is automatically added. So be aware that pixel format of the output bitmap may differ from the input one.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Shadow Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_TransformsProvider_Shadow.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
