TVideoGrabber.SetTextOverlay_CustomVar

Prev

Next

TVideoGrabber

Methods

 




































































































Sets a custom variable displayed in the TextOverlay string for the specified text overlay


Declaration
procedure SetTextOverlay_CustomVar(TextOverlaySelector: LongInt; VarIndex: LongInt; VarText: String);


void __fastcall SetTextOverlay_CustomVar(int TextOverlaySelector, int VarIndex, wchar_t *VarText)


Sub SetTextOverlay_CustomVar(TextOverlaySelector as Long, VarIndex As Long, VarText As String)

Description

Used to set the custom variable displayed in the TextOverlay string.
Setting custom variables is faster than rewriting the full text overlay string, because it saves TVideoGrabber having to parse it again.

Parameters:

Index: index of the overlay
VarIndex: index of the custom variable that has been set with SetTextOverlay_String (from 0 to 9)
VarText: text of the custom variable

E.g., to initialize the 2 text overlay string, that will use custom variables:

...
VideoGrabber.SetTextOverlay_String  (0, "my first text uses %custom0%")
VideoGrabber.SetTextOverlay_Left    (0, 10)
VideoGrabber.SetTextOverlay_Top     (0, 10)
VideoGrabber.SetTextOverlay_Enabled (0, true)
VideoGrabber.SetTextOverlay_String  (1, "my second text uses %custom3% and %custom4%")
VideoGrabber.SetTextOverlay_Left    (1, 20)
VideoGrabber.SetTextOverlay_Top     (1, 100)
VideoGrabber.SetTextOverlay_Enabled (1, true)
VideoGrabber.StartPreview
...


then to update the custom variables of the 1st text overlay string:

...
VideoGrabber.SetTextOverlayCustomVar (0, 0, "value 0")
...


and of the 2nd text overlay string:

...
VideoGrabber.SetTextOverlayCustomVar (1, 3, "value 3")
VideoGrabber.SetTextOverlayCustomVar (1, 4, "value 4")
...


See also SetTextOverlay_String.


See Also
TCardinalDirection TOnFrameOverlayUsingDC TOnFrameOverlayUsingDIB TTextOverlayAlign AdjustOverlayAspectRatio DrawBitmapOverFrame GetFrameInfoString GetTextOverlay_AlphaBlend GetTextOverlay_AlphaBlendValue ImageOverlay_StretchToVideoSize MouseWheelEventEnabled OnFrameBitmap OnFrameBitmapEventSynchrone OnFrameOverlayUsingDC OnFrameOverlayUsingDIB OnFrameOverlayUsingVIDEOHDR OnMouseDown OnMouseMove OnMouseUp OnMouseWheel OverlayAfterTransform RefreshPlayerOverlays SetImageOverlay_AlphaBlend SetImageOverlay_AlphaBlendValue SetImageOverlay_ChromaKey SetImageOverlay_ChromaKeyLeewayPercent SetImageOverlay_ChromaKeyRGBColor SetImageOverlay_Enabled SetImageOverlay_Height SetImageOverlay_LeftLocation SetImageOverlay_RotationAngle SetImageOverlay_StretchToVideoSize SetImageOverlay_TargetDisplay SetImageOverlay_TopLocation SetImageOverlay_Transparent SetImageOverlay_TransparentColorValue SetImageOverlay_UseTransparentColor SetImageOverlay_Width SetImageOverlayFromBMPFile SetImageOverlayFromHBitmap SetImageOverlayFromHBitmap2 SetImageOverlayFromImageFile SetImageOverlayFromImageFile2 SetImageOverlayFromJPEGFile SetImageOverlayFromTBitmap SetImageOverlayFromTBitmap2 SetImageOverlayFromTImage SetImageOverlayFromTImage2 SetTextOverlay_Align SetTextOverlay_AlphaBlend SetTextOverlay_AlphaBlendValue SetTextOverlay_BkColor SetTextOverlay_Enabled SetTextOverlay_Font SetTextOverlay_FontColor SetTextOverlay_GradientColor SetTextOverlay_GradientMode SetTextOverlay_HighResFont SetTextOverlay_Left SetTextOverlay_Right SetTextOverlay_Scrolling SetTextOverlay_ScrollingSpeed SetTextOverlay_Shadow SetTextOverlay_ShadowColor SetTextOverlay_ShadowDirection SetTextOverlay_String SetTextOverlay_TargetDisplay SetTextOverlay_Top SetTextOverlay_Transparent ShapeOverlay ShapeOverlayEnabled ShapeOverlayList TextOverlay_Align TextOverlay_BkColor TextOverlay_CreateCustomFont TextOverlay_CreateCustomFont2 TextOverlay_Enabled TextOverlay_Font TextOverlay_FontColor TextOverlay_Left TextOverlay_Right TextOverlay_Scrolling TextOverlay_ScrollingSpeed TextOverlay_Selector TextOverlay_Shadow TextOverlay_ShadowColor TextOverlay_ShadowDirection TextOverlay_String TextOverlay_Top TextOverlay_Transparent TranslateMouseCoordinates