This function provides a radial wave effect on the hIGear image.
Declaration:
Copy Code |
|
|---|---|
AT_ERRCOUNT ACCUAPI IG_FX_radial_wave(
HIGEAR hIGear,
AT_POINT nCenter,
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. |
| nCenter | Center of the wave effect, in pixels. |
| fAmplitude | Wave amplitude. Measurement units - pixel / 100. |
| fFrequency | 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:
- Indexed RGB – 1 bpp
- Grayscale – 1 bpp
When bInterpolate is TRUE, all pixel formats supported by ImageGear Professional, except:
- Indexed RGB – 1 bpp
- Indexed RGB with non-grayscale palette (only when bInterpolate is TRUE)
- Grayscale – 1 bpp
