Movie Maker Timeline Control

GetImageClip Method

Description

Get image clip information.

Syntax

Public Function GetImageClip ( _
   ByVal trackIndex as integer, _
   ByVal clipIndex as integer, _
   ByVal filename as string, _
   ByVal clipStartTime as float, _
   ByVal clipStopTime as float, _
   ByVal stretchMode as integer
)

 

Parameter

trackIndex
   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

clipIndex
    the index of image clip

filename
    return the path of image file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

Return Value

filename
    return the path of image file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

 stretchMode
    return the stretchMode.

Example

Visual Basic Syntax
Dim strFilename As String
Dim iclipStart As Single
Dim iclipStop As Single
Dim imediaStarttime As Single
Dim istretchMode as Single
Dim ivolume As Single
TimelineControl1.GetImageClip 3, 0, strFilename, iclipStart, iclipStop, istretchMode