HitTestAnnotation
Annotations, Interaction
תיאור
מחזיר את האינדקס (החל מ-1) של ההערה העליונה בנקודה בעמוד הנבחר
The test uses QuadPoints for markup, segment distance for Line, PolyLine and Ink, polygon fill or edges, ellipse geometry for Circle and rectangle geometry for other subtypes
תחביר
Function TPDFlib.HitTestAnnotation(X, Y, Tolerance: Double; Options: Integer): Integer;
פרמטרים
| X, Y | Point in the current document unit and origin convention |
|---|---|
| Tolerance | Additional hit radius in current document units, or 0 for exact geometry |
| Options | Bit 1 includes Invisible, Hidden and NoView annotations; bit 2 includes Popup annotations; bit 4 uses bounding rectangles only |
ערכים מוחזרים
אינדקס ההערה העליון (החל מ-1), או 0 כאשר לא נפגעה הערה זכאית
הערות
Later entries in the page Annots array are treated as higher Z order and tested first; the rectangle is checked before subtype geometry so sparse pages and misses avoid detailed path work