Index

CDTDocV8

ImgGetTransformPlus

ImgGetTransform

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

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

Parameters

ParameterDescription

img

Image's index in the Power Engine document.

transform

For ImgGetTransformPlus, 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 ImgGetTransform, 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.



 

Index