Movie Player ActiveX Control

SetLayerValue

 

Change the value of layer. including position and alpha channel value.

Public Function SetLayerValue( _
  ByVal iLayerNo As Integer ,_
  ByVal iVideoLeft As Float ,_
  ByVal iVideoTop As Float ,_
  ByVal iVideoRight As Float ,_
  ByVal iVideoBottom As Float ,_
  ByVal iAlphaValue As Float
  )

 

Parameter
iLayerNo
Specifies the layer number.

iVideoLeft
Specifies upper-left corner x-coordinate of the video. It must be a value from 0.0 to 1.0

iVideoTop
Specifies upper-left corner y-coordinate of the video. It must be a value from 0.0 to 1.0

iVideoRight
Specifies lower-right corner x-coordinate. It must be a value from 0.0 to 1.0

iVideoBottom
Specifies lower-right corner y-coordinate. It must be a value from 0.0 to 1.0

iAlphaValue
The alpha channel of video. It must be a value from 0.0 to 1.0.

Return Value
True - Success, False- Failed

Example

   

Visual Basic Syntax
Me.MoviePlayer1.Play
MoviePlayer1.SetLayerValue 0,0, 0,0.5 ,0.5,1.0
MoviePlayer1.SetLayerValue 1,0.0, 0.5,1 ,1,1.0