This function provides a perspective-like effect by placing image corners to the specified points, and stretching the image linearly between them.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_FX_perspective( HIGEAR hIGear, AT_POINT LeftTop, AT_POINT RightTop, AT_POINT LeftBottom, AT_POINT RightBottom, HIGPIXEL hbkColor, LPAT_RECT lpRect ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | Image to which to apply the effect. |
LeftTop | AT_POINT | Position to which to move the left top image corner. |
RightTop | AT_POINT | Position to which to move the right top image corner. |
LeftBottom | AT_POINT | Position to which to move the left bottom image corner. |
RightBottom | AT_POINT | Position to which to move the right bottom image corner. |
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.
All pixel formats supported by ImageGear for C and C++, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp.