ImageGear Professional DLL v17.1 for Windows Accusoft
IG_FX_spatter
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > 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:

hIGear Image to which to apply spatter effect.
diffusionHor Factor of horizontal diffusion. The greater this value, the deeper the horizontal diffusion. Typical values range from 1 to 20.
diffusionVert Factor of vertical diffusion. The greater this value, the deeper the vertical diffusion. Typical values range from 1 to 20.
smoothness 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.

©2012. Accusoft Corporation. All Rights Reserved.