QMedia Text media commands

QM_SetTextMediaDrop

QM_SetTextMediaDrop(movieRef; trackID; dropOffsetH; dropOffsetV; dropTrans):error
movieRef Longint Movie reference
trackID Longint Track ID
dropOffsetH Longint Horizontal drop offset
dropOffsetV Longint Vertical drop offset
dropTrans Longint Drop shadow transparency
error Longint Error result

Changes the drop shadow options that are 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.

Parameters dropOffsetH and dropOffsetV specify the horizontal and vertical drop shadow offsets respectively.

Parameter dropTrans specifies the drop shadow transparency. The drop shadow transparency must be in the 0-255 range.

QMedia sets the default drop shadow options to the following values:

Horizontal offset:6
Horizontal offset:6
Transparency:127

Example

`Set the drop shadow options for text track ID $trackID
 
C_LONGINT($hDrop;$vDrop;$transparency)
$hDrop:=4 `4 pixels horz drop
$vDrop:=4 `4 pixels vert drop
$transparency:=127 `50% transparency
 
$err:=QM_SetTextMediaDrop ($movie;$trackID;$hDrop;$vDrop;$transparency)
 

Related commands

QM_GetTextMediaDrop Returns the drop shadow options of new text samples.

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