QMedia
![]() |
![]() ![]() |
QM_SetVideoMediaDisplayFormat(movieRef; trackID; displayFormat):error | |||
![]() |
movieRef | Longint | Movie reference |
![]() |
trackID | Longint | Track ID |
![]() |
displayFormat | Longint | Display format |
![]() |
error | Longint | Error result |
Changes the display format that is used when adding samples to a video track.
Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile.
Parameter trackID is the ID of the track.
Parameter displayFormat specifies the position and scaling of the picture or image within the video track's bounds. The following 4D picture display formats are supported:
Truncated Centered | 1 |
Scaled to Fit | 2 |
Truncated non Centered | 4 |
Scaled to fit proportional | 5 |
Scaled to fit prop centered | 6 |
QMedia sets the default diplay format to Scaled to fit prop centered (6).
Example
`Set the display format for video track ID $trackID C_LONGINT($format) $format:=Scaled to fit prop centered `4D's picture display format $err:=QM_SetVideoMediaDisplayFormat ($movie;$trackID;$format) |
Related commands
QM_GetVideoMediaDisplayFormat | Returns the display format of new video samples. |