ImageGear for C and C++ on Windows v20.0 - Updated
IG_PDE_element_is_at_rect
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_ELEMENT > IG_PDE_element_is_at_rect

Tests whether any part of a rectangle is on an element.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_element_is_at_rect(
        HIG_PDE_ELEMENT hElement,
        LPAT_PDF_FIXEDRECT lpRect,
        LPAT_BOOL lpbResult
);

Arguments:

Name Type Description
hElement HIG_PDE_ELEMENT

The element to test.

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

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

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