QMedia
![]() |
![]() ![]() |
QM_TranslateMatrix(matrixRec; deltaH; deltaV):error | |||
![]() |
matrixRec | Array real | Matrix record |
![]() |
deltaH | Real | Horizontal delta |
![]() |
deltaV | Real | Vertical delta |
![]() |
error | Longint | Error result |
Adds a translation transformation to a matrix record.
Parameter matrixRec specifies the matrix. It must be declared as a 3 x 3 array of reals. QMedia updates and returns the contents matrixRec with the specified translation operation.
Parameters deltaH and deltaV specify the horizontal and vertical coordinate translation values respectively.
Example
`Move track ID $trackID of movie $movie by 20 pixels horizontally and vertically ARRAY REAL($matrix;3;3) $err:=QM_GetTrackMatrix ($movie;$trackID;$matrix) $err:=QM_TranslateMatrix ($matrix;20;20) $err:=QM_SetTrackMatrix ($movie;$trackID;$matrix) |
Related commands
QM_SetIdentityMatrix | Sets the contents of a matrix record to the identity matrix. |
QM_ScaleMatrix | Adds a scaling transformation to a matrix record. |
QM_RotateMatrix | Adds a rotation transformation to a matrix record. |
QM_SkewMatrix | Adds a skew transformation to a matrix record. |
QM_ConcatMatrix | Concatenates two matrices. |
QM_SetTrackMatrix | Changes the track's transormation matrix. |
QM_GetTrackMatrix | Returns the track's transormation matrix. |