QMedia Movie track commands

QM_GetTrackGraphicsMode

QM_GetTrackGraphicsMode(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

Returns 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 receives the track's graphics mode. QMedia defines the following constants for indentifying graphics modes:

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 receives the RGB color used for bending and transparent modes. It is 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_SetTrackGraphicsMode Changes the track's graphics mode.

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