ImageGear Professional v18.4 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_spatter |
This function applies a spatter effect to an image, making it look as if it was painted in the impressionist style of painting.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_FX_spatter( HIGEAR hIGear, AT_INT diffusionHor, AT_INT diffusionVert, AT_INT smoothness ); |
Name | Type | Description |
hIGear | HIGEAR | Image to which to apply spatter effect. |
diffusionHor | AT_INT | Factor of horizontal diffusion. The greater this value, the deeper the horizontal diffusion. Typical values range from 1 to 20. |
diffusionVert | AT_INT | Factor of vertical diffusion. The greater this value, the deeper the vertical diffusion. Typical values range from 1 to 20. |
smoothness | AT_INT | Smoothness factor of diffusion. Typical values range from 0 to 100. |
Returns the number of ImageGear errors that occurred during this function call.
All pixel formats supported by ImageGear Professional.
Image Processing
The painted points are randomly generated, hence creating a slightly different look to the image each time the method is applied with the exact same settings.