ImageGear Professional DLL v17.1 for Windows Accusoft
IG_PDE_element_is_at_point
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > 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

Glossary Item Box

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:

hElement

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 The point, specified in user space coordinates.
lpbResult 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.

©2012. Accusoft Corporation. All Rights Reserved.