ImageGear Professional DLL v18.1 for Windows
IG_FX_sphere
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_sphere

Glossary Item Box

This function provides the effect of warping around a sphere on the hIGear image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_FX_sphere(
        HIGEAR hIGear, 
        AT_POINT Center, 
        AT_INT nRadius, 
        AT_INT nHeight,
        AT_BOOL bInterpolate,
        HIGPIXEL hbkColor, 
        LPAT_RECT lpRect 
);

Arguments:

Name Type Description
hIGear HIGEAR Image to which to apply the effect.
Center AT_POINT Sphere center, in pixels.
nRadius AT_INT Sphere radius, in pixels.
nHeight AT_INT Height of the sphere segment, in pixels. Height can be changed from (-radius) to (radius).
bInterpolate AT_BOOL If TRUE, interpolation is used during processing.
hbkColor HIGPIXEL Background color. It should have the same color space and channel depths as the image to which the effect is applied.
lpRect LPAT_RECT Rectangular area to apply the effect to, or NULL for whole image.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

When bInterpolate is FALSE, all pixel formats supported by ImageGear Professional, except:

When bInterpolate is TRUE, all pixel formats supported by ImageGear Professional, except:

©2014. Accusoft Corporation. All Rights Reserved.