Copyright © 2005-2019 MultiMedia Soft

VideoPlayer.FrameGrabberResultsGetFilePathname method

Previous pageReturn to chapter overviewNext page

Remarks

 

After completing a grabbing session, through a call to the VideoPlayer.FrameGrabberExecToFile method, given the index of a grabbed frame obtains the absolute pathname of the picture file where the frame's bitmap is stored.

 

For further details about frames grabbing see the How to grab frames from video files tutorial.

For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function FrameGrabberResultsGetFilePathname (

nPlayerIndex as Int16,

nFrameIndex as Int32

) as IntPtr


 

[C#]

public IntPtr FrameGrabberResultsGetFilePathname (

Int16 nPlayerIndex,

Int32 nFrameIndex

);


 

[C++]

public: IntPtr FrameGrabberResultsGetFilePathname (

Int16 nPlayerIndex,

Int32 nFrameIndex

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that will use the video player.

nFrameIndex

Number representing the zero-based index of the grabbed frame. You can obtain the total number of grabbed frames through the VideoPlayer.FrameGrabberResultsGetFilesCount method.

 

 

Return value

 

Value

Meaning

 

 

Valid string

Absolute pathname of the picture file where the frame's bitmap is stored

Empty string

An error occurred, check the LastError property value in order to see the error code meaning file