ImageGear Professional DLL v17.1 for Windows Accusoft
IG_FX_perspective
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_perspective

Glossary Item Box

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:

hIGear Image to which to apply the effect.
LeftTop Position to which to move the left top image corner.
RightTop Position to which to move the right top image corner.
LeftBottom Position to which to move the left bottom image corner.
RightBottom Position to which to move the right bottom image corner.
hbkColor Background color. It should have the same color space and channel depths as the image to which the effect is applied.
lpRect 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 Professional, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp.

©2012. Accusoft Corporation. All Rights Reserved.