ImageGear for C and C++ on Windows v19.10 - Updated
IG_IP_drop_shadow
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_drop_shadow

This function adds a drop shadow to an image, which is enlarged to contain a background and shadowed area.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_drop_shadow(
        HIGEAR hIGear, 
        AT_INT width, 
        AT_INT distance, 
        AT_INT angle, 
        HIGPIXEL hInsideColor, 
        HIGPIXEL hOutsideColor
);

Arguments:

Name Type Description
hIGear HIGEAR Image to which to apply drop shadow effect.
width AT_INT Width of background and shadow area to add to the image.
distance AT_INT Distance to move image from shadow area.
angle AT_INT Angle (direction) of movement of image from shadow area.
hInsideColor HIGPIXEL Color of shadow area. It should have the same color space and channel depths as the image to which the effect is applied.
hOutsideColor HIGPIXEL Color of background. It should have the same color space and channel depths as the image to which the effect is applied.

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;
Indexed RGB with non-grayscale palette;
Grayscale – 1 bpp;
Images that have a Grayscale LUT attached to them.

Sample:

Image Processing