Viscom Software VideoCap ActiveX Control

TextFontStyle Method

Description:   

Set the style (regular, bold, italic, bolditalic, underline) of  text

 

Usage:   

VideoCap1.TextFontStyle iIndex, iFontStyle

iIndex - the index of text. First index is zero, up to 60 index. You can control 60 texts in same time.
(Data Type: Integer)

iFontStyle - the font style. (Data Type: Integer)

0 - regular
1 - bold
2 - italic
3 - bolditalic
4 - underline

Return Value:   

No Return value.

Example:   

This Visual Basic set the first text of font style to bold:

Private Sub Form_Load()
        Me.VideoCap1.Start
        Me.VideoCap1.TextColor 0,RGB(0,255,0)
        Me.VideoCap1.TextFontSize=20
        Me.VideoCap1.TextFontName 0,"Arial"
        Me.VideoCap1.TextFontStyle=1
        Me.VideoCap1.DrawText 0, 0, 0, "Hello"
End Sub