QMedia Movie area geometry commands

QM_GetMoviePlacement

QM_GetMoviePlacement(areaRef; moviePlacement):error
areaRef Longint Movie area reference
moviePlacement Longint Default movie placement
error Longint Error result

Returns the placement of a movie in a movie plug-in area.

The movie's placement is returned in the moviePlacement parameter. QMedia defines the following constants for the movie placement:

qm_ScaledToFitPropCentered 0 Center the movie in the area. If the movie is larger than the area, it is scaled down proportionally.
qm_ScaledToFitProportional 1 Place the movie on the top-left corner of the area. If the movie is larger than the area, it is scaled down proportionally.
qm_ScaledToFit 2 Resize the movie to fit the dimensions of the plug-in area.
qm_UserDefinedPlacement -1 The enclosing rectangle of the movie or its controller has been changed with QM_SetMovieRect or QM_SetControllerRect.

Example

  `Get the movie placement of plug-in area xMovieArea
 
C_LONGINT($placement)
 
$error:=QM_GetMoviePlacement (xMovieArea;$placement)
 

Related commands

QM_SetMoviePlacement Sets the placement of a movie in a movie area.

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