This documentation is for the old version. Go to the latest Graphics Mill docs

Wave Constructor (Single, Single, Int32, Single, Single, Int32, WaveType, Color, InterpolationMode, Boolean)

Creates and initializes Wave class instance. You can set all parameters of this transforms here.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
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 _
)
C#
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

Amplitude for horizontal wave. You can change it later via HorizontalAmplitude property.
horizontalWavelength

Type: System.Single

Length of the horizontal wave. You can change it later via HorizontalWavelength property.
horizontalStartPhase

Type: System.Int32

Horizontal wave start phase (in degrees). You can change it later via HorizontalStartPhase property.
verticalAmplitude

Type: System.Single

Amplitude for vertical wave. You can change it later via VerticalAmplitude property.
verticalWavelength

Type: System.Single

Length of the vertical wave. You can change it later via VerticalWavelength property.
verticalStartPhase

Type: System.Int32

Vertical wave start phase (in degrees). You can change it later via VerticalStartPhase property.
waveType

Type: Aurigma.GraphicsMill.Transforms.WaveType

WaveType value that specifies a form of the wave. You can change it later via WaveType property.
backgroundColor

Type: Aurigma.GraphicsMill.Color

Value specifying background color for the distorted image. You can change it later via BackgroundColor property.
interpolationMode

Type: Aurigma.GraphicsMill.Transforms.InterpolationMode

InterpolationMode value specifying interpolation algorithm used during wave transformation. You can change it later via InterpolationMode property.
enlargeToFit

Type: System.Boolean

Value that specifies whether to enlarge the image to fit entire distorted image. You can change it later via EnlargeToFit property.

See Also

Reference