Index

C/C++ Functions

pdImgGetTransformPlus

void pdImgGetTransformPlus(DT_PDDOC power_doc, DT_SLONG img, DT_TM3X3 transform)

Short Description: Get image's 3X3 transformation matrix

pdImgGetTransform

void pdImgGetTransform(DT_PDDOC power_doc, DT_SLONG img, DT_TM2X2 transform)

Short Description: Get image's 2x2 transformation matrix

The pdImgGetTransformPlus (or pdImgGetTransform) function returns the transformation matrix associated with an existing PowerDoc image.

The only difference between pdImgGetTransformPlus and pdImgGetTransform is that pdImgGetTransformPlus returns the full 3x3 transformation matrix while pdImgGetTransform only returns its top two rows and columns. Therefore, pdImgGetTransform is more limited (i.e. this function cannot be used to retrieve the full perspective transform associated with a PowerDoc image).

Parameters

ParameterDescription

power_doc

Handle of the associated Power Engine document.

img

Image's index in the Power Engine document.

transform

For pdImgGetTransformPlus, this is a 3x3 transformation matrix. This matrix represents the 2D perspective (or projective) transform currently associated with the specified PowerDoc image. For more information, see the description of the DT_TM3X3 basic data type in this manual.

For pdImgGetTransform, this is a 2x2 transformation matrix. This matrix represents the top two rows and columns of the 2D perspective transform currently associated with the specified PowerDoc image. For more information, see the description of the DT_TM2X2 basic data type in this manual.

Related Functions

pdImgSetTransformPlus, pdImgSetTransform
pdImgAddPlus, pdImgAdd

 

Index