QMedia Text media commands

QM_GetTextMediaStyle

QM_GetTextMediaStyle(movieRef; trackID; textFont; textSize; textStyle):error
movieRef Longint Movie reference
trackID Longint Track ID
textFont String255 Text font
textSize Longint Text size
textStyle Longint Text style
error Longint Error result

Returns the text style options currently used when adding samples to a text 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 textFont and textSize receive the name and size of the font respectively.

Parameter textStyle receives the text style. It is a combination (sum or the result of bitwise "or") of the following 4D constants:

Plain0
Bold1
Italic2
Underline4
Outline8
Shadow16
Condensed32
Extended64

QMedia sets the default text style options to the following values:

MacOSWindows
Font:GenevaMS Sans Serif
Size:912
Style:PlainPlain

Example

  `Get text media style of track ID $trackID
 
C_STRING(255;$fontName)
C_LONGINT($fontSize;$style)
 
$err:=QM_GetTextMediaStyle ($movie;$trackID;$fontName;$fontSize;$style)
 

Related commands

QM_SetTextMediaStyle Changes the text style options of new text samples.

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