Copyright © 2006-2018 MultiMedia Soft

WaveformAnalyzer.GraphicItemBuddyPictureGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the HBITMAP of the eventually existing buddy picture for the given graphic item.

 

On the screenshot below you can see a set of vertical lines displayed over the waveform, each with its buddy picture aligned on the bottom right of the vertical line:

 

 

An existing buddy picture can be removed at a later time by calling this method again with the HBITMAP parameter set to IntPtr.Zero.

 

For details about graphic items management on the waveform analyzer refer to the How to add graphic items to the Waveform analyzer section.

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.

 

 

Syntax

 

[Visual Basic]

Public Function GraphicItemBuddyPictureGet (

nUniqueId as Int32,

ByRef hBitmap as IntPtr

) as enumErrorCodes


 

[C#]

public enumErrorCodes GraphicItemBuddyPictureGet (

Int32 nUniqueId,

ref IntPtr hBitmap

);


 

[C++]

public: enumErrorCodes GraphicItemBuddyPictureGet (

Int32 nUniqueId,

IntPtr __gc *hBitmap

);


 

 

Parameter

Description

 

 

nUniqueId

Unique identification number assigned to the graphic item.

The unique identification number of a graphic item is generated using one of the following methods:

hBitmap

Reference that, on return from the method call, will contain the HBITMAP of the picture.

In order to avoid leaks of system resource, when the HBITMAP is no more needed the container application should free it by calling the DeleteObject function of the Windows API.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.