---
title: "TransformsProvider..::.Cylindrize Method (Single, Single, Single, Color, Color, InterpolationMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Cylindrize_6_342fbcb5.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.Cylindrize Method (Single, Single, Single, Color, Color, InterpolationMode)
 
Applies cylindrize transform (image is looking like bended on mug or any other cylindric surface).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Cylindrize ( _slopeAngle As Single, _cylinderHalfPerimeter As Single, _cylinderHeight As Single, _cylinderColor As Color, _backgroundColor As Color, _interpolationMode As InterpolationMode _
)
```
 
```csharp
public void Cylindrize(float slopeAngle,float cylinderHalfPerimeter,float cylinderHeight,Color cylinderColor,Color backgroundColor,InterpolationMode interpolationMode
)
```
 
### Parameters
 
 - slopeAngle
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Slope angle of the cylinder.

 - cylinderHalfPerimeter
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Positive number specifying half-perimeter of the cylinder. You can also specify -1. In this case width of the bitmap will be taken.

 - cylinderHeight
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Positive number specifying height of the cylinder. You can also specify -1. In this case height of the bitmap will be taken.

 - cylinderColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Cylinder color value.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Background color value.

 - interpolationMode
     - Type: [Aurigma.GraphicsMill.Transforms.InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md)
 [InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md) value specifying interpolation algorithm used in the transform.
 
## Remarks
 You can also use [Cylindrize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Cylindrize.htm.md) class to apply this transform.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Cylindrize Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Cylindrize.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
