QMedia Movie track commands


QM_SetTrackGraphicsMode(movieRef; trackID; graphicsMode; opColor):error
movieRef Longint Movie reference
trackID Longint Track ID
graphicsMode Longint Graphics mode
opColor Longint Operation color (rgb)
error Longint Error result

Changes the graphics mode and operation color 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.

Parameter graphicsMode specifies the track's graphics mode. QMedia defines the following constants for specifying media types:

qm_DitherCopyMode 64  
qm_CopyMode 0  
qm_BlendMode 32  
qm_TransparentMode 36  
qm_StraightAlphaMode 256  
qm_PremulWhiteAlphaMode 257  
qm_PremulBlackAlphaMode 258  
qm_StraightAlphaBlendMode 260  
qm_CompositionMode 259  
qm_AddPinMode 33  
qm_SubPinMode 35  

Parameter opColor is the RGB color to be used for bending and transparent modes. It must be expressed as a longint, using 4Dv6's RGB color notation format (0x00RRGGBB - see the SET RGB COLOR 4D command). 4D's RGB color constants can also be used.

Related commands

QM_GetTrackGraphicsMode Returns the track's graphics mode.

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