SetTextOverlay_Font
Delphi
procedure SetTextOverlay_Font (Index: LongInt; Value: TFont);
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 the font used to draw text over video frames for the specified text overlay. The font color is set with SetTextOverlay_FontColor.
The Value parameter is a TFont in Delphi and C++Builder, a font handle (HFONT) in the other versions. In C#.NET, pass the handle returned by the ToHfont() function of the Font object, e.g.:
Font NewFont = new Font("Courier New", 14);
VideoGrabber1.SetTextOverlay_Font (0, NewFont.ToHfont());
VideoGrabber1.SetTextOverlay_Enabled (0, true);
VideoGrabber1.StartPreview();