AddHighlightRegion
Viewer interaction
Description
Adds a persistent translucent highlight over the given rectangle of a page; the rectangle is given in top-down page user-space points, the same convention GetTextInRegion uses
HighlightColor and is also included in captured bitmaps
Syntax
Delphi
Procedure TPDFlibViewer.AddHighlightRegion(APage: Integer; XPos, YPos, RWidth, RHeight: Double);Parameters
| APage | One-based page index |
|---|---|
| XPos, YPos | Top-left corner of the region in page points |
| RWidth, RHeight | Extents in page points; negative values are normalised |
See also
TPDFlibViewer, ClearHighlightRegions, HighlightRegionCount, HighlightColor, GetTextInRegion