Copyright © 2008-2019 MultiMedia Soft

WANALYZER_BUDDY_PICTURE structure

Previous pageReturn to chapter overviewNext page

The WANALYZER_BUDDY_PICTURE structure describes settings applied to a "buddy" picture assigned to a graphic item, available on the Waveform Analyzer, through one between the WaveformAnalyzer.GraphicItemBuddyPictureSetFromFile,WaveformAnalyzer.GraphicItemBuddyPictureSetFromMemory or WaveformAnalyzer.GraphicItemBuddyPictureSetFromHandle methods. The current settings of the "buddy" picture can be retrieved through the WaveformAnalyzer.GraphicItemBuddyPictureParamsGet method and modified through the WaveformAnalyzer.GraphicItemBuddyPictureParamsSet method.

 

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.

 

C# definition

 

public struct WANALYZER_BUDDY_PICTURE

{

     public Color colorTransp;

     public Int16 nTranspFactor;

     public enumBuddyAlignment nAlignment;

     public Int32 nResizeWidth;

     public Int32 nResizeHeight;

     public bool bKeepVisible;

}

 

 

Member

Description

 

 

colorTransp

Color of the picture rendered as transparent.

nTranspFactor

Transparent factor. This value can range from 0 (total opacity) to 255 (total transparency). Values outside of this range will be automatically capped to the nearest valid value.

nAlignment

Alignment respect to the graphic item.

Supported values are the following:

Mnemonic constant

Value

Meaning

BUDDY_ALIGN_LEFT_TOP

0

Buddy element is left-top aligned

BUDDY_ALIGN_CENTER_TOP

1

Buddy element is center-top aligned

BUDDY_ALIGN_RIGHT_TOP

2

Buddy element is right-top aligned

BUDDY_ALIGN_LEFT_MIDDLE

3

Buddy element is left-middle aligned

BUDDY_ALIGN_CENTER_MIDDLE

4

Buddy element is center-middle aligned

BUDDY_ALIGN_RIGHT_MIDDLE

5

Buddy element is right-center aligned

BUDDY_ALIGN_LEFT_BOTTOM

6

Buddy element is left-bottom aligned

BUDDY_ALIGN_CENTER_BOTTOM

7

Buddy element is center-bottom aligned

BUDDY_ALIGN_RIGHT_BOTTOM

8

Buddy element is right-bottom aligned

nResizeWidth

Resize width in pixels (0 use original width).

nResizeHeight

Resize height in pixels (0 use original height).

bKeepVisible

Boolean value that specifies if the picture is kept visible when reaching the limits of the waveform visible range.

Supported values are the following:

Mnemonic constant

Meaning

False

The picture is not kept visible

True

The picture is kept visible