---
title: "TransformsProvider..::.Shadow Method (Color, Single, Single, Single, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Shadow_5_cd274a8b.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# TransformsProvider.Shadow Method (Color, Single, Single, Single, Boolean)
 
Applies a shadow effect.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Shadow ( _shadowColor As Color, _horizontalOffset As Single, _verticalOffset As Single, _radius As Single, _enlargeToFit As Boolean _
)
```
 
```csharp
public void Shadow(Color shadowColor,float horizontalOffset,float verticalOffset,float radius,bool enlargeToFit
)
```
 
### Parameters
 
 - shadowColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Glow color.

 - horizontalOffset
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Horizontal offset of the shadow.

 - verticalOffset
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Vertical offset of the shadow.

 - radius
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value that specifies a blur radius used to blur the shadow.

 - enlargeToFit
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value that specifies whether to enlarge the image to fit entire shadow.
 
## Remarks
  
You can also use [Shadow](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Shadow.htm.md) class to apply this effect.
 
**Note** 
If the bitmap does not have an alpha channel (e.g. its pixel format is [Format24bppRgb](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.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/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Shadow Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Shadow.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
