Provides the effect of warping around a cylinder on the hIGear image.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_FX_cylinder( HIGEAR hIGear, AT_INT nDistance, AT_INT nRadius, AT_INT nHeight, AT_BOOL bHorizontal, AT_BOOL bInterpolate, HIGPIXEL hbkColor, LPAT_RECT lpRect ); |
Arguments:
hIGear | Image to which to apply the effect. |
nDistance | Distance to the cylinder axes, in pixels. |
nRadius | Cylinder radius, in pixels. |
nHeight | Height of the cylinder segment, in pixels. Height can be changed from (-radius) to (radius). |
bHorizontal | If TRUE, cylinder is horizontal. |
bInterpolate | If TRUE, interpolation is used during processing. |
hbkColor | Background color. It should have the same color space and channel depths as the image to which the effect is applied. |
lpRect | Rectangle 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:
- Indexed RGB – 1 bpp
- Grayscale – 1 bpp
When bInterpolate is TRUE, all pixel formats supported by ImageGear Professional, except:
- Indexed RGB – 1 bpp
- Indexed RGB with non-grayscale palette (only when bInterpolate is TRUE)
- Grayscale – 1 bpp