|
SetVideoPosition (DVR version only)
|
|
| Frame [in]
|
| The zero-based index of the frame to set.
|
| Mode [in]
|
| If 0, Frame will be used as an absolute zero-based position of the frame in the file or sequence.
|
| If 1, Frame will be used as an incremental move relative to the current frame position (i.e. Frame=2 will move the video position two frames forward, while Frame=-2 will move it two frames back.
|
| S_OK
|
| Success
|
| E_FAIL
|
| Failure.
|
| Private Sub Form_Load()
|
| ActiveGige1.OpenVideo "C:\\video1.avi"
|
| HScroll1.Min=0
|
| HScroll1.Max=ActiveGige1.GetVideoFrameCount - 1
|
| End Sub
|
|
|
| Private Sub HScroll1_Scroll()
|
| frameposition = HScroll1.Value
|
| ActiveGige1.SetVideoPosition frameposition
|
| End Sub
|
|
|