Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal amplitude As Integer, _ ByVal waveLength As Integer, _ ByVal angle As Integer, _ ByVal horizontalFactor As Integer, _ ByVal verticalFactor As Integer, _ ByVal fillColor As RasterColor, _ ByVal flags As WaveCommandFlags _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public WaveCommand( int amplitude, int waveLength, int angle, int horizontalFactor, int verticalFactor, RasterColor fillColor, WaveCommandFlags flags ) |
C++/CLI | |
---|---|
public: WaveCommand( int amplitude, int waveLength, int angle, int horizontalFactor, int verticalFactor, RasterColor fillColor, WaveCommandFlags flags ) |
Parameters
- amplitude
- Wave's magnitude. This parameter only accepts positive values.
- waveLength
- Value that represents the wave length, if theWaveCommandFlags.Period flag is set. Possible values range from 1 - 100 and give the wavelength as a percentage of the image dimensions. If the WaveCommandFlags.Frequency flag is set, this value is the number of repeated waves.
- angle
- Wave's rotation angle in hundredths of degrees. The valid range is from -18000 to 18000 (The value in degrees is angle divided by 100).
- horizontalFactor
- Size of the horizontal wave, given as a percentage. The valid range is from 0 to 100.
- verticalFactor
- Size of the vertical wave, given as a percentage. The valid range is from 0 to 100.
- fillColor
- Specifies the fill color for any exposed areas.
- flags
- Flags that indicate how to handle exposed areas, the type of information in the waveLength parameter and the wave type.
Run the WaveCommand on an image.
Visual Basic | Copy Code |
---|---|
Public Sub WaveConstructorExample() |
C# | Copy Code |
---|---|
public void WaveConstructorExample() |
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family