RevEffect method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int RevEffect(unsigned uLineSpace, unsigned uMaximumHeight);

Delphi Syntax

Function RevEffect (uLineSpace: L_UINT; uMaximumHeight: L_UINT): L_INT;

Overview

Refer to Applying Artistic Effects

Remarks

(Raster Pro and above toolkits) Adds a pseudo-3D wave effect to the bitmap by drawing lines across the bitmap, basing the line’s height at each point on its brightness at that point.

This method is similar to the Rutt-Etra Video Synthesizer. The Rutt-Etra video synthesizer was a processor that modulated the deflection lines of a television image so that they appeared to adopt the contours of objects. It was invented by Steve Rutt and Bill Etra in the 1970s.

With this method, you set the maximum height to be used for the pixels with the maximum brightness value. The other pixel heights are calculated by linear interpolation. Each line is 1 pixel in width. Control the spacing between the lines that are drawn across the image with the uLineSpace parameter.

You can get a more stable wave by performing either of the following:

Apply any type of blur like the GaussianFilter method, with a large nRadius value.

Apply the RevEffect and pass a small value to uMaximumHeight.

Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Emboss method, AddShadow method, ChangeHueSatInt method, ColorReplace method, ColorThreshold method, DiscreteFourierTransformation method, DirectionEdgeStatistical method, GetStatisticsInfo method, GetFeretsDiameter method, GetObjectInfo method, GetRgnContourPoints method, GetRgnPerimeterLength method, RevEffect method, Segment method, SubtractBackground method, UserFilter method.

Topics:

Raster Images: Artistic Effects