Viscom Software VideoCap ActiveX Control

SetHashBrushValue Method

Description:   

Set Hash Brush Style and color when you select TextStyle to 1

Usage:   

VideoCap1.SetHashBrushValue  iIndex, iHashBrushStyle, clrForeColor, clrBackColor

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

iHashBrushStyle as following value

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 

clrForeColor - the foreground color of hash brush.

clrBackColor - the background color of hash brush.

Return Value:

No Return value.

Example:   

This Visual Basic example shows how to Set the hash brush value.

Me.VideoCap1.Start
Me.VideoCap1.TextStyle 0,1
Me.VideoCap1.SetHashBrushValue 0, 40, RGB(0,0,0), RGB(255,255,255)
Me.VideoCap1.TextFontSize 0,20
Me.VideoCap1.TextFontName 0,,"Arial"
Me.VideoCap1.TextFontStyle 0,1
Me.VideoCap1.DrawText 0, 0, 0, "Hello"