|
Foxit PDF SDK
|
Public Types | |
| enum | SnapPointFlags { SnapPointFlags.e_FlagEndpoint = 0x0001, SnapPointFlags.e_FlagMidpoint = 0x0002, SnapPointFlags.e_FlagIntersectionPoint = 0x0004, SnapPointFlags.e_FlagNearestPoint = 0x0008 } |
| Enumeration for snapping point flags which are used to specify what kind of point in a path is to be snapped. More... | |
Public Member Functions | |
| SnapPointMgr (PDFPage page) | |
| Constructor, from a parsed PDF page object. More... | |
| SnapPointMgr (SnapPointMgr other) | |
| Constructor, with another snap point manager object. More... | |
| SnappedPoint | GetSnappedPointAtPos (PointF position, int flags) |
| Get the snapped point information at/around a specified position in PDF coordinate system. More... | |
| bool | IsEmpty () |
| Check whether current object is empty or not. More... | |
| void | Reload () |
| Reload current manager. More... | |
This class represents a manager for snapping point. This class can be used to snap point in a path with specified snapping flags.
|
strong |
Enumeration for snapping point flags which are used to specify what kind of point in a path is to be snapped.
Values of this enumeration can be used alone or in combination.
|
inline |
Constructor, from a parsed PDF page object.
| [in] | page | A valid PDF page object. This page should has been parsed. |
|
inline |
Constructor, with another snap point manager object.
| [in] | other | Another snap point manager object. |
|
inline |
Get the snapped point information at/around a specified position in PDF coordinate system.
| [in] | position | A specified position, in PDF coordinate system. |
| [in] | flags | Flags for snapping point. Please refer to values starting from foxit.pdf.SnapPointMgr.SnapPointFlags.e_FlagEndpoint and this should be one or a combination of these values. |
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
inline |
Reload current manager.
This function should be called after any path in related PDF page has been modified.