Copyright © 2005-2018 MultiMedia Soft

VideoPlayer.FrameGrabberResultsGetBitmap method

Previous pageReturn to chapter overviewNext page

Remarks

 

After completing a grabbing session, through a call to the VideoPlayer.FrameGrabberExecToMemory method, given the index of a grabbed frame obtains the handle (HBITMAP) of the related memory bitmap.

 

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 FrameGrabberResultsGetBitmap (

nPlayerIndex as Int16,

nFrameIndex as Int32

) as IntPtr


 

[C#]

public IntPtr FrameGrabberResultsGetBitmap (

Int16 nPlayerIndex,

Int32 nFrameIndex

);


 

[C++]

public: IntPtr FrameGrabberResultsGetBitmap (

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.FrameGrabberResultsGetBitmapsCount method.

 

 

Return value

 

Value

Meaning

 

 

0

An error occurred, check the LastError property value in order to get the error code

Other values

The handle (HBITMAP) of the memory bitmap