Viscom Software Screen2Video ActiveX Control

CaptureArea Method

Description:   

Capture the specific area by percentage or zoom in or zoom out to specific area

Usage:   

Screen2Video1.CaptureArea Parameter1, Parameter2, Parameter3, Parameter4

Return Value:

Return true - successful , Return false - Failure.

Parameter:

Parameter1. - Specifies the percentage of x-coordinate of the starting point of capture area.
Parameter2. - Specifies the percentage of y-coordinate of the starting point of capture area.
Parameter3. - Specifies the percentage of width of capture area.
Parameter4. - Specifies the percentage of height of capture area.

 

Example:   

This Visual Basic example start the screen capture"

Private Sub cmdCapture_Click()     

    Screen2Video1.FileName = "c:\test.avi"
     Screen2Video1.CaptureArea 0,0,100,100 ' capture full screen.
    result = Screen2Video1.Start

    If result = False Then
        MsgBox "Cannnot screen record,file opening or video/audio compressor not correct"
    End If

End Sub