This function pinches an image toward or away from the pinch center.
Copy Code
|
|
---|---|
AT_ERRCOUNT EXPORT ACCUAPI IG_FX_pinch( HIGEAR hIGear, AT_POINT nCenter, AT_INT nRadius, AT_FLOAT fStrength, AT_BOOL bInterpolate, HIGPIXEL hbkColor, LPAT_RECT lpRect ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | Image to which to apply the effect. |
nCenter | AT_POINT | Pinch center, in pixels. |
nRadius | AT_INT | Pinch radius, in pixels. |
fStrength | AT_FLOAT | Pinch strength. Positive value means that the page is pinched away from the center. |
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 which to apply the effect, or NULL for whole image. |
Returns the number of ImageGear errors that occurred during this function call.
When bInterpolate is FALSE, all pixel formats supported by ImageGear for C and C++, except:
When bInterpolate is TRUE, all pixel formats supported by ImageGear for C and C++, except: