Copyright © 2001-2019 MultiMedia Soft

VideoPlayer.OSDItemBitmapGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the bitmap for an existing graphical item previously added to the On-Screen-Display (OSD) through a call to the VideoPlayer.OSDItemBitmapAdd or VideoPlayer.OSDItemPictureFileAdd or VideoPlayer.OSDItemPictureMemoryAdd methods.

 

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

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

 

 

Syntax

 

[Visual Basic]

control.VideoPlayer.OSDItemBitmapGet (

nPlayer as Integer,

nItemUniqueId as Long,

hBitmap as OLE_HANDLE,

nOriginalWidth as Long,

nOriginalHeight as Long,

nResizeWidth as Long,

nResizeHeight as Long

) as enumErrorCodes


 

[C++]

short control.VideoPlayer.OSDItemBitmapGet (

short nPlayer,

long nItemUniqueId,

OLE_HANDLE *hBitmap,

long *nOriginalWidth,

long *nOriginalHeight,

long nResizeWidth,

long nResizeHeight

);


 

Parameter

Description

 

 

nPlayer

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

nItemUniqueId

Unique identifier of item returned by a previous call to the VideoPlayer.OSDItemBitmapAdd method

hBitmap

Reference that, on return from the method call, will contain the handle of the bitmap (HBITMAP).

nOriginalWidth

Reference that, on return from the method call, will contain the original width, expressed in pixels, of the picture

nOriginalHeight

Reference that, on return from the method call, will contain the original height, expressed in pixels, of the picture

nResizeWidth

Width, expressed in pixels, for resizing the picture before returning the HBITMAP; ignored if set to 0

nResizeHeight

Height, expressed in pixels, for resizing the picture before returning the HBITMAP; ignored if set to 0

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful