ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IP_drop_shadow
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Effects Functions > IG_IP_drop_shadow

Glossary Item Box

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:

hIGear Image to which to apply drop shadow effect.
width Width of background and shadow area to add to the image.
distance Distance to move image from shadow area.
angle Angle (direction) of movement of image from shadow area.
hInsideColor Color of shadow area. It should have the same color space and channel depths as the image to which the effect is applied.
hOutsideColor 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 Professional, 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

©2012. Accusoft Corporation. All Rights Reserved.