Index

CDTDocV8

ImgSetTransformPlus

ImgSetTransform

The ImgSetTransformPlus (or ImgSetTransform) function changes the transformation matrix associated with a PowerDoc image. This makes it possible to apply a different transformation matrix to an existing image.

The only difference between ImgSetTransformPlus and ImgSetTransform is that ImgSetTransformPlus uses a 3x3 transformation matrix while ImgSetTransform uses a 2x2 transformation matrix. Therefore, ImgSetTransform is more limited (i.e. this function cannot be used to apply a perspective transform to a PowerDoc image).

Parameters

ParameterDescription

img

Image's index in the Power Engine document.

transform

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

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



 

Index