Viscom Software Screen2Video ActiveX Control

TextSetHashBrushValue Method

Description:   

Set Hash Brush Style and color when you select TextSetStyle to 3

Usage:   

Screen2Video1.TextSetHashBrushValue Parameter1, Parameter2, Parameter3, Parameter4

Return Value:

No Return value.

Parameter:

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

0 - HatchStyleHorizontal 

1 - HatchStyleVertical 

2 - HatchStyleForwardDiagonal 

3 - HatchStyleBackwardDiagonal 

4 - HatchStyleCross 

5 - HatchStyleDiagonalCross 

6 - HatchStyle05Percent 

7 - HatchStyle10Percent 

8 - HatchStyle20Percent 

9 - HatchStyle25Percent 

10 - HatchStyle30Percent 

11 - HatchStyle40Percent 

12 - HatchStyle50Percent 

13 - HatchStyle60Percent 

14 - HatchStyle70Percent 

15 - HatchStyle75Percent 

16 - HatchStyle80Percent 

17 - HatchStyle90Percent 

18 - HatchStyleLightDownwardDiagonal 

19 - HatchStyleLightUpwardDiagonal 

20 - HatchStyleDarkDownwardDiagonal 

21 - HatchStyleDarkUpwardDiagonal 

22 - HatchStyleWideDownwardDiagonal 

23 -HatchStyleWideUpwardDiagonal 

24 -HatchStyleLightVertical 

25 -HatchStyleLightHorizontal 

26 -HatchStyleNarrowVertical 

27 -HatchStyleNarrowHorizontal 

28 - HatchStyleDarkVertical 

29 - HatchStyleDarkHorizontal 

30 - HatchStyleDashedDownwardDiagonal 

31 - HatchStyleDashedUpwardDiagonal 

32 - HatchStyleDashedHorizontal 

33 - HatchStyleDashedVertical 

34 - HatchStyleSmallConfetti 

35 - HatchStyleLargeConfetti 

36 - HatchStyleZigZag 

37 - HatchStyleWave 

38 - HatchStyleDiagonalBrick 

39 - HatchStyleHorizontalBrick 

40 - HatchStyleWeave 

41 - HatchStylePlaid 

42 - HatchStyleDivot 

43 - HatchStyleDottedGrid 

44 - HatchStyleDottedDiamond 

45 - HatchStyleShingle 

46 - HatchStyleTrellis 

47 - HatchStyleSphere 

48 - HatchStyleSmallGrid 

49 - HatchStyleSmallCheckerBoard 

50 - HatchStyleLargeCheckerBoard 

51 -HatchStyleOutlinedDiamond 

52 - HatchStyleSolidDiamond 

Parameter3- the foreground color of hash brush. (Data Type: RGB)
Parameter4- the background color of hash brush. (Data Type: RGB)
 

Example:   

This Visual Basic example start the screen capture"

Private Sub cmdCapture_Click()     

        Screen2Video1.OutputType=0
        Screen2Video1.UseOverlay = true
        Screen2Video1.UseHWAcceleration=True
        Screen2Video1.UseAudioCompressor=False
        Screen2Video1.UseVideoCompressor=False
        Screen2Video1.FileName="c:\test.avi"
        Screen2Video1.Start
        Screen2Video1.TextSetStyle 0, 3
        Screen2Video1.TextSetFontName 0, "Arial"
        Screen2Video1.TextSetFontSize 0, 40
        Screen2Video1.TextSetHashBrushValue 0, 0,RGB(255,0,0), RGB(0,255,0)
        Screen2Video1.DrawText 0,100,100, "this is text 1"

End Sub