Skip to content

FadingGroup_AssignTextOverlay

function

Delphi
procedure FadingGroup_AssignTextOverlay (FadingGroupId: LongInt; TextOverlayIndex: LongInt);
C++Builder
void __fastcall FadingGroup_AssignTextOverlay(System::LongInt FadingGroupId, System::LongInt TextOverlayIndex);
C#
public void FadingGroup_AssignTextOverlay(int FadingGroupId, int TextOverlayIndex);
VB.NET
Public Sub FadingGroup_AssignTextOverlay(FadingGroupId As Integer, TextOverlayIndex As Integer)
C++/Qt
void FadingGroup_AssignTextOverlay (int FadingGroupId, int TextOverlayIndex);

Assigns the text overlay identified by TextOverlayIndex to the fading group. The overlay then fades (alpha modulation) in synchronization with the other members of the group.

TextOverlayIndex is the index of the text overlay (0 for the 1st text overlay, 1 for the 2nd, etc.), i.e. the Index passed to SetTextOverlay_String and SetTextOverlay_Enabled.

No function creates a text overlay: the overlay is defined by the SetTextOverlay... functions (e.g. SetTextOverlay_String) and displayed once enabled with SetTextOverlay_Enabled.

A given overlay belongs to at most one fading group: assigning it to another group removes it from the previous one.

For example, to fade the 1st text overlay (index 0):

VideoGrabber.SetTextOverlay_String (0, 'Hello');
VideoGrabber.SetTextOverlay_Enabled (0, true);
FadingGroupId := VideoGrabber.FadingGroup_Create (1500);
VideoGrabber.FadingGroup_AssignTextOverlay (FadingGroupId, 0);
VideoGrabber.FadingGroup_FadeOut (FadingGroupId);

See the Fading groups chapter.