![]() |
#include <Ink.h>
Public Member Functions | |
Ink (SDF::Obj d=0) | |
Creates an Ink annotation and initializes it using given Cos/SDF object. | |
Ink (const Annot &ann) | |
Creates an Ink annotation and initializes it using given annotation object. | |
int | GetPathCount () const |
Returns number of paths in the annotation. | |
int | GetPointCount (unsigned int pathindex) const |
Returns number of points in a certain stroked path in the InkList. | |
Point | GetPoint (unsigned int pathindex, unsigned int pointindex) const |
Returns the specific point in a given path. | |
void | SetPoint (unsigned int pathindex, unsigned int pointindex, const Point &pt) |
Sets the specific point in the Ink List, adding it if needed. | |
Static Public Member Functions | |
static Ink | Create (SDF::SDFDoc &doc, const Rect &pos) |
Creates a new Ink annotation in the specified document. |
When opened, it shall display a pop-up window containing the text of the associated note.
pdftron::PDF::Annots::Ink::Ink | ( | SDF::Obj | d = 0 |
) |
Creates an Ink annotation and initializes it using given Cos/SDF object.
pdftron::PDF::Annots::Ink::Ink | ( | const Annot & | ann | ) | [inline] |
Creates an Ink annotation and initializes it using given annotation object.
static Ink pdftron::PDF::Annots::Ink::Create | ( | SDF::SDFDoc & | doc, | |
const Rect & | pos | |||
) | [static] |
int pdftron::PDF::Annots::Ink::GetPathCount | ( | ) | const |
Returns number of paths in the annotation.
int pdftron::PDF::Annots::Ink::GetPointCount | ( | unsigned int | pathindex | ) | const |
Returns number of points in a certain stroked path in the InkList.
pathindex | path index for each the point count is returned. Index starts at 0. |
Point pdftron::PDF::Annots::Ink::GetPoint | ( | unsigned int | pathindex, | |
unsigned int | pointindex | |||
) | const |
Returns the specific point in a given path.
pathindex | path index for each the point is returned. Index starts at 0. | |
pointindex | index of point in the path. Index starts at 0. |
void pdftron::PDF::Annots::Ink::SetPoint | ( | unsigned int | pathindex, | |
unsigned int | pointindex, | |||
const Point & | pt | |||
) |
Sets the specific point in the Ink List, adding it if needed.
pathindex | An unsigned integer indicating the index of the path. | |
pointindex | An unsigned integer indicating the index of the point within the stroked path indicated by the parameter "pathindex". | |
pt | A Point object that is to be assigned. |