ImageGear for C and C++ on Windows v20.5 - Updated
IG_FX_spatter
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.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_FX_spatter(
        HIGEAR hIGear, 
        AT_INT diffusionHor, 
        AT_INT diffusionVert, 
        AT_INT smoothness
);

Arguments:

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.

Return Value:

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

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

Image Processing

Remarks:

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.

Is this page helpful?
Yes No
Thanks for your feedback.