Copyright © 2013-2023 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 GraphicItemBuddyPictureSetFromFile,GraphicItemBuddyPictureSetFromMemory or GraphicItemBuddyPictureSetFromHandle methods. The current settings of the "buddy" picture can be retrieved through the GraphicItemBuddyPictureParamsGet method and modified through the GraphicItemBuddyPictureParamsSet method.

 

 

Visual C++ definition

 

typedef struct

{

         OLE_COLOR colorTransp;

         short nTranspFactor;

         long nAlignment;

         long nResizeWidth;

         long nResizeHeight;

         short bKeepVisible;

} WANALYZER_BUDDY_PICTURE;

 

This data structure is defined inside the WavMmsEngDef.h header file which can be found inside the product's Include directory (default \Program Files\MultiMedia Soft\Active Waveform Analyzer\include).

 

Visual Basic definition

 

Public Type WANALYZER_BUDDY_PICTURE

         colorTransp As OLE_COLOR

         nTranspFactor As Integer

         nAlignment as enumBuddyAlignment

         nResizeWidth as Long

         nResizeHeight as Long

         bKeepVisible as Boolean

End Type

 

This data structure is defined inside the AsoedDef.bas module file which can be found inside the product's Include directory (default \Program Files\MultiMedia Soft\Active Waveform Analyzer\include).

 

 

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