QMedia Movie track commands |

### QM_SetTrackDimensions

QM_SetTrackDimensions(movieRef; trackID; trackWidth; trackHeight):error
| movieRef | Longint | Movie reference
| trackID | Longint | Track ID
| trackWidth | Real | Track width
| trackHeight | Real | Track height
| error | Longint | Error result

Changes the natural dimensions of a track.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL.

Parameter trackID is the ID of the track.

Parameters trackWidth and trackHeight specify the track's natural dimensions. If the track's dimensions are changed, the tracks media data is scaled to fit the new width and height.

Example

``Set the dimensions of track ID $trackID of movie $movie to {320,240}` `` `C_REAL($trackWidth;$trackHeight)` `` `$trackWidth:=320` `$trackHeight:=240` `` `$err:=QM_SetTrackDimensions ($movie;$trackID;$trackWidth;$trackHeight)` `` ``

Related commands

QM_GetTrackDimensions | Returns the track's natural dimensions.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:41:03