Viscom Software VideoCap ActiveX Control

TextStyle Method

Description:   

Set the text style (normal, outline, filled outline, hash brush, texture brush)

 

Usage:   

VideoCap1.TextStyle iIndex, iTextStyle

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

iTextStyle - the text style. (Data Type: Integer)

0 - normal
1 - outline text
2 - filled outline text
3 - hash brush
4 - texture brush

When you select text style 0, you can change the text color value with TextColor property.
When you select text style 1, you can change the outline border value with SetOutlineTextBorderColor method.
When you select text style 2, you can change the outline border value with SetOutlineTextBorderColor method and change outline background color with SetOutlineTextBackColor method.
When you select text style 3, you can change the hash brush style and color with SetHashBrushValue method.
When you select text style 4, you can change the texture image with SetTextureBrushImage method.

Return Value:   

No Return value.

Example:   

This Visual Basic set the textstyle = 0:

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

End Sub