ImageGear Professional DLL v18.1 for Windows
IG_FX_spatter
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_spatter

Glossary Item Box

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 Professional.

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.

©2014. Accusoft Corporation. All Rights Reserved.