RevEffect Method (ILEADRasterProcess)
short RevEffect (ILEADRaster* pRaster, long lLineSpace, long lMaxHeight) | |
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 adds a pseudo-3D wave effect to the bitmap. It 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 lLineSpace parameter.
You can get a more stable wave by performing either of the following:
Apply any type of blur like GaussianFilter method with a large iRadius value.
Apply the RevEffect method and pass a small value to lMaxHeight.
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