ImageGear Professional DLL v17.1 for Windows Accusoft
IG_FX_directional_wave
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_directional_wave

Glossary Item Box

Applies a directional wave effect on the current hIGear image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_FX_directional_wave(
        HIGEAR hIGear, 
        AT_FLOAT fAngle,
        AT_FLOAT fAmplitude,
        AT_FLOAT fFrequency,
        AT_FLOAT fPhase, 
        AT_FLOAT fAttenuation, 
        AT_BOOL bInterpolate,
        HIGPIXEL hbkColor, 
        LPAT_RECT lpRect 
);

Arguments:

hIGear Image to which to apply the effect.
fAngle Wave direction, in radians.
fAmplitude Wave amplitude. Measurement units - pixel / 100.
fFrequency Wave frequency. The frequency is defined as 1 / T, where T is a wave period, in pixels.
fPhase Wave phase, in radians.
fAttenuation Wave attenuation. The attenuation factor of the wave is calculated as exp(-attenuation * r), where r is a distance from the wave center to the current wave point.
bInterpolate If TRUE, interpolation is used during processing.
hbkColor Background color. It should have the same color space and channel depths as the image to which the effect is applied.
lpRect Rectangular area to apply the effect to, or NULL for whole image.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

When bInterpolate is FALSE, all pixel formats supported by ImageGear Professional, except:

When bInterpolate is TRUE, all pixel formats supported by ImageGear Professional, except:

©2012. Accusoft Corporation. All Rights Reserved.