ImageGear for C and C++ on Windows v19.6 - Updated
IG_PDE_element_is_at_point
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_ELEMENT > IG_PDE_element_is_at_point

Tests whether a point is on an element.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_element_is_at_point(
        HIG_PDE_ELEMENT hElement,
        LPAT_PDF_FIXEDPOINT lpPoint,
        LPAT_BOOL lpbResult
);

Arguments:

Name Type Description
hElement HIG_PDE_ELEMENT

The element to test.

  • If hElement is Text or an Image, it uses the bounding box of the element to make the check.
  • If the hElement is a Path and it is stroked, it checks if the point is on the path.
  • If the hElement is a Path and it is filled, it checks if the point is in the fill area, taking into consideration whether it is filled using the non-zero winding number rule or the even-odd rule.
lpPoint LPAT_PDF_FIXEDPOINT The point, specified in user space coordinates.
lpbResult LPAT_BOOL TRUE if the point is on the element; FALSE otherwise.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.