ImageEn, unit imageenproc

TImageEnProc.Wave

TImageEnProc.Wave


Declaration

procedure Wave(Amplitude, WaveLength, Phase: Integer; Reflective: Boolean = False);


Description

Apply a wave effect to the current image.

Note:
A UI for this is available to your users in the Image Processing dialog
Also available as a RetouchTool by setting MouseInteractGeneral to [miRetouchTool] and RetouchMode to iermWave
If the image PixelFormat is not one of ie8g, ie32RGB, ieCMYK, ie24RGB, it will be converted

Parameter Description
Amplitude Amplitude (height) of the wave (> 0)
WaveLength Length of the wave (> 0)
Phase phase of the wave in degrees (0 - 359)
Reflective If true makes a special effect


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Apply a wave effect to the image
ImageEnView1.Proc.Wave( 10, 10, 0, false );

  

// Apply a reflective wave effect to the image
ImageEnView1.Proc.Wave( 10, 10, 0, True );