QMedia
![]() |
![]() ![]() |
QM_ScaleMatrix(matrixRec; scaleH; scaleV; anchorH; anchorV):error | |||
![]() |
matrixRec | Array real | Matrix record |
![]() |
scaleH | Real | Horizontal scaling factor |
![]() |
scaleV | Real | Vertical scaling factor |
![]() |
anchorH | Real | Horizontal coordinate of the anchor point |
![]() |
anchorV | Real | Vertical coordinate of the anchor point |
![]() |
error | Longint | Error result |
Adds a scaling 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 scaling operation.
Parameters scaleH and scaleV specify the horizontal and vertical scaling factors respectively.
Parameters anchorH and anchorV specify the horizontal and vertical coordinates of the anchor point.
Example
`Scale track ID $trackID of movie $movie by 50% horizontally and vertically ARRAY REAL($matrix;3;3) $err:=QM_GetTrackMatrix ($movie;$trackID;$matrix) $err:=QM_ScaleMatrix ($matrix;0.5;0.5;0;0) $err:=QM_SetTrackMatrix ($movie;$trackID;$matrix) |
Related commands
QM_SetIdentityMatrix | Sets the contents of a matrix record to the identity matrix. |
QM_TranslateMatrix | Adds a translation 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. |