ImageGear for C and C++ on Windows v20.0 - Updated
IG_FX_perspective
API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_perspective

This function provides a perspective-like effect by placing image corners to the specified points, and stretching the image linearly between them.

Declaration:

 
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 
);

Arguments:

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.

Return Value:

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

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp.

Is this page helpful?
Yes No
Thanks for your feedback.