---
title: "TransformsProvider..::.Buttonize Method (Single, FadeType, Direction, Boolean, Boolean, Color, Color)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Buttonize_7_f4ecaa33.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.Buttonize Method (Single, FadeType, Direction, Boolean, Boolean, Color, Color)
 
Applies buttonize effect on the image.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Buttonize ( _borderWidth As Single, _fadeType As FadeType, _direction As Direction, _horizontalBorder As Boolean, _verticalBorder As Boolean, _lightColor As Color, _shadowColor As Color _
)
```
 
```csharp
public void Buttonize(float borderWidth,FadeType fadeType,Direction direction,bool horizontalBorder,bool verticalBorder,Color lightColor,Color shadowColor
)
```
 
### Parameters
 
 - borderWidth
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Border (button edge) width.

 - fadeType
     - Type: [Aurigma.GraphicsMill.Transforms.FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md)
 [FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md) value specifying a fade type used to draw button edges.

 - direction
     - Type: [Aurigma.GraphicsMill.Transforms.Direction](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Direction.htm.md)
 [Direction](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Direction.htm.md) value specifying lightning direction used to draw button edges.

 - horizontalBorder
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether to show horizontal border.

 - verticalBorder
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether to show vertical border.

 - lightColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
 [Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md) value used to draw highlighted edges.

 - shadowColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
 [Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md) value used to draw shadowed edges.
 
## Remarks
 You can also use [Buttonize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Buttonize.htm.md) class to apply this effect.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Buttonize Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Buttonize.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
