Copyright © 2001-2019 MultiMedia Soft

VideoMixer.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 VideoMixer.OSDItemBitmapAdd or VideoMixer.OSDItemPictureFileAdd or VideoMixer.OSDItemPictureMemoryAdd methods.

 

For further details about the use of the embedded video mixer see the VideoMixer object section.

For details about video mixing/blending refer to the How to use the video mixer tutorial.

 

 

Syntax

 

[Visual Basic]

control.VideoMixer.OSDItemBitmapGet (

nMixerUniqueId as Long,

nItemUniqueId as Long,

hBitmap as OLE_HANDLE,

nOriginalWidth as Long,

nOriginalHeight as Long,

nResizeWidth as Long,

nResizeHeight as Long

) as enumErrorCodes


 

[C++]

short control.VideoMixer.OSDItemBitmapGet (

long nMixerUniqueId,

long nItemUniqueId,

OLE_HANDLE *hBitmap,

long *nOriginalWidth,

long *nOriginalHeight,

long nResizeWidth,

long nResizeHeight

);


 

Parameter

Description

 

 

nMixerUniqueId

Unique identifier of the video mixer returned by a previous call to the VideoMixer.Create method

nItemUniqueId

Unique identifier of item returned by a previous call to the VideoMixer.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