ImageGear Professional v18.4 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_IP_drop_shadow( HIGEAR hIGear, AT_INT width, AT_INT distance, AT_INT angle, HIGPIXEL hInsideColor, HIGPIXEL hOutsideColor ); |
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. |
Returns the number of ImageGear errors that occurred during this function call.
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.
Image Processing