ImageGear for C and C++ on Windows v19.4 - Updated
IG_FX_oilify
API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_oilify

This function applies an effect to an image that makes it appear similar to an oil painting.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_FX_oilify(
        HIGEAR hIGear, 
        AT_INT brushSize
); 

Arguments:

Name Type Description
hIGear HIGEAR Image to which to apply oilify effect.
brushSize AT_INT Brush size in pixels. As the brush size is increased, less detail is visible in the image and the effect becomes more dramatic.

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++, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp;
Indexed RGB with non-grayscale palette;
Images that have a Grayscale LUT attached to them;
17…32 bpc images.

Sample:

Image Processing