QMediaLight 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.

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.

QMediaLight © Escape OE
Generated by QDoc 2.8 on Thu, Oct 8, 2009 18:08:27