Movie Maker Timeline Control

ChangeTrackImage Method

Description

Change the track image on the timeline.

Syntax

Public Function ChangeTrackImage( _
   ByVal Index as integer, _
   ByVal strImage as integer
 )

 

Parameter

Index
   0 - Transition Track
   1 - Video 1 Track
   2 - Video 2 Track
   3 - Image Track
   4 - Effect Track
   5 - Audio 1 Track
   6 - Audio 2 Track
   7 - Text Track

strImage
    the path of PNG image. The resolution image should within 52 x 52 pixel.


No Return Value

Return 1 if successful.
Return -1 , the name of transition is empty.
Return -3 , the StartTime >= StopTime.
Return -4 , the track not found.
Return -5 , the unknown error.
Return -6 , the transition clip not found.

Example

Visual Basic Syntax
TimelineControl1.ChangeTrackImage(0, "c:\temp\mytran.png")
TimelineControl1.ChangeTrackImage(1, "c:\temp\myvideo1.png")
TimelineControl1.ChangeTrackImage(2, "c:\temp\myvideo2.png")