---
title: "TransformsProvider..::.Shadow Method (Color, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Shadow_3_db6adc39.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)
 
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 _
)
```
 
```csharp
public void Shadow(Color shadowColor,float horizontalOffset,float verticalOffset
)
```
 
### 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.
 
## 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.
 
## Examples
  
```
bitmap.Transforms.Shadow(Aurigma.GraphicsMill.RgbColor.Gray, 10, 10)
```
 
```csharp
bitmap.Transforms.Shadow(Aurigma.GraphicsMill.RgbColor.Gray, 10, 10);
```
   
## 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)
