The image processing filter implements simple water wave effect. Using properties of the class, it is possible to set number of vertical/horizontal waves, as well as their amplitude.
Bilinear interpolation is used to create smooth effect.
The filter accepts 8 bpp grayscale images and 24/32 color images for processing.
Sample usage:
// create filter WaterWave filter = new WaterWave( ); filter.HorizontalWavesCount = 10; filter.HorizontalWavesAmplitude = 5; filter.VerticalWavesCount = 3; filter.VerticalWavesAmplitude = 15; // apply the filter Bitmap newImage = filter.Apply( image );
Initial image:
Result image: