The pdImgSetTransformPlus (or pdImgSetTransform) 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 pdImgSetTransformPlus and pdImgSetTransform is that pdImgSetTransformPlus uses a 3x3 transformation matrix while pdImgSetTransform uses a 2x2 transformation matrix. Therefore, pdImgSetTransform is more limited (i.e. this function cannot be used to apply a perspective transform to a PowerDoc image).
Parameter | Description |
---|---|
power_doc |
Handle of the associated Power Engine document. |
img |
Image's index in the Power Engine document. |
transform |
For pdImgAddPlus, 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 pdImgAdd, 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. |
pdImgGetTransformPlus, pdImgGetTransform
pdImgAddPlus, pdImgAdd