Skip to content

SetTextOverlay_Font

method

Delphi
procedure SetTextOverlay_Font (Index: LongInt; Value: NativeInt);
C++Builder
void __fastcall SetTextOverlay_Font(System::LongInt Index, Vcl::Graphics::TFont* Value);
C#
public void SetTextOverlay_Font(int Index, IntPtr Value);
VB.NET
Public Sub SetTextOverlay_Font(Index As Integer, Value As IntPtr)
C++/Qt
void SetTextOverlay_Font (int Index, INT_PTR Value);
void SetTextOverlay_Font (INT_PTR Value);

sets or retrieves the font used to draw text over video frames for the specified text overlay. In C#.NET, use the ToHfont().ToInt32() function of the Font object. E.g.:

Font NewFont = new Font("Courier New", 14); VideoGrabber1.SetTextOverlay_Font (0, NewFont.ToHfont().ToInt32()); VideoGrabber1.SetTextOverlay_Enabled (0, true); VideoGrabber1.StartPreview();