---
title: "Wave Constructor (Single, Single, Int32, Single, Single, Int32, WaveType, Color, InterpolationMode, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Wave_ctor_10_bb1061dc.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/)

# Wave Constructor (Single, Single, Int32, Single, Single, Int32, WaveType, Color, InterpolationMode, Boolean)
 
Creates and initializes [Wave](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Wave.htm.md) class instance. You can set all parameters of this transforms here.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _horizontalAmplitude As Single, _horizontalWavelength As Single, _horizontalStartPhase As Integer, _verticalAmplitude As Single, _verticalWavelength As Single, _verticalStartPhase As Integer, _waveType As WaveType, _backgroundColor As Color, _interpolationMode As InterpolationMode, _enlargeToFit As Boolean _
)
```
 
```csharp
public Wave(float horizontalAmplitude,float horizontalWavelength,int horizontalStartPhase,float verticalAmplitude,float verticalWavelength,int verticalStartPhase,WaveType waveType,Color backgroundColor,InterpolationMode interpolationMode,bool enlargeToFit
)
```
 
### Parameters
 
 - horizontalAmplitude
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Amplitude for horizontal wave. You can change it later via [HorizontalAmplitude](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_HorizontalAmplitude.htm.md) property.

 - horizontalWavelength
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Length of the horizontal wave. You can change it later via [HorizontalWavelength](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_HorizontalWavelength.htm.md) property.

 - horizontalStartPhase
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Horizontal wave start phase (in degrees). You can change it later via [HorizontalStartPhase](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_HorizontalStartPhase.htm.md) property.

 - verticalAmplitude
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Amplitude for vertical wave. You can change it later via [VerticalAmplitude](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_VerticalAmplitude.htm.md) property.

 - verticalWavelength
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Length of the vertical wave. You can change it later via [VerticalWavelength](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_VerticalWavelength.htm.md) property.

 - verticalStartPhase
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Vertical wave start phase (in degrees). You can change it later via [VerticalStartPhase](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_VerticalStartPhase.htm.md) property.

 - waveType
     - Type: [Aurigma.GraphicsMill.Transforms.WaveType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_WaveType.htm.md)
 [WaveType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_WaveType.htm.md) value that specifies a form of the wave. You can change it later via [WaveType](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_WaveType.htm.md) property.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Value specifying background color for the distorted image. You can change it later via [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_BackgroundColor.htm.md) property.

 - 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 during wave transformation. You can change it later via [InterpolationMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_InterpolationMode.htm.md) property.

 - enlargeToFit
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value that specifies whether to enlarge the image to fit entire distorted image. You can change it later via [EnlargeToFit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Wave_EnlargeToFit.htm.md) property.
   
## See Also

### Reference

- [Wave Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Wave.htm.md)
- [Wave Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Wave_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
