Xojo Conferences
XDCMay2019MiamiUSA

DynaPDF Manual - Page 519

Previous Page 518   Index   Next Page 520

Function Reference
Page 519 of 766
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
MoveTo
Syntax:
LBOOL pdfMoveTo(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of new position
double PosY)
// Y-Coordinate of new position
The function moves the current position to the point specified by PosX, PosY. This function must be
called before a line or curved path segment can be drawn. See also LineTo(), Bezier_1_2_3().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
MultiplyMatrix
Syntax:
LBOOL pdfMultiplyMatrix(
struct TCTM* M1,
// First transformation matrix
struct TCTM* M2,
// Second transformation matrix
struct TCTM* NewMatrix) // Resulting transformation matrix
The function multiplies two transformation matrices and stores the result in the parameter
NewMatrix. This function is required to calculate the resulting matrix in user coordinate space when
using the functions GetPageText() in combination with WriteTextMatrix().
The two matrices M1 and M2 are multiplied as follows:
NewMatrix->a = M2->a * M1->a + M2->b * M1->c;
NewMatrix->b = M2->a * M1->b + M2->b * M1->d;
NewMatrix->c = M2->c * M1->a + M2->d * M1->c;
NewMatrix->d = M2->c * M1->b + M2->d * M1->d;
NewMatrix->x = M2->x * M1->a + M2->y * M1->c + M1->x;
NewMatrix->y = M2->x * M1->b + M2->y * M1->d + M1->y;
Matrix multiplication is not commutative - the order in which matrices are multiplied is significant.
This function is implemented as native procedure in the interfaces for Visual Basic, Visual Basic .Net
and Delphi.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: MovePage

Next topic: OpenImportBuffer