This function provides the ripple effect on the image, as if it is looked at through a relief glass.
|
Copy Code
|
|
|---|---|
AT_ERRCOUNT ACCUAPI IG_FX_ripple(
HIGEAR hIGear,
AT_FLOAT depth,
AT_INT xPeriod,
AT_INT yPeriod,
enumIGFXRipplePattern type,
AT_FLOAT smoothness,
AT_BOOL bInvert
);
|
|
| Name | Type | Description |
|---|---|---|
| hIGear | HIGEAR | Image to which to apply the effect. |
| depth | AT_FLOAT | Strength of the ripple effect. |
| xPeriod | AT_INT | X period of the ripple pattern, in pixels. |
| yPeriod | AT_INT | Y period of the ripple pattern, in pixels. |
| type | enumIGFXRipplePattern | Identifies a predefined ripple pattern. |
| smoothness | AT_FLOAT | Specifies how much the ripple pattern should be smoothed before applying. |
| bInvert | AT_BOOL | Inverts the ripple pattern, effectively swapping "convex" and "concave" areas. |
Returns the number of ImageGear errors that occurred during this function call.
All pixel formats supported by ImageGear for C and C++.
Image Processing
The function uses one of the predefined ripple patterns defined in enumIGFXRipplePattern.