Viscom Software Screen2Video ActiveX Control

DrawImage Method

Description:   

 Draw the images to video when screen recording.

Usage:   

Screen2Video1.DrawImage Parameter1,Parameter2,Parameter3,Parameter4,Parameter5,Parameter6

Return Value:

No Return value.

Parameter:

Parameter1- the index of image. First index is zero, up to 60 index. You can draw 60 images in same time. (Data Type: Integer)
Parameter2- the left position of image. (Data Type: Integer)
Parameter3- the top position of image. (Data Type: Integer)
Parameter4- the path of image. (Data Type: String)
Parameter5- the transparent color of image. (Data Type: RGB)
Parameter6- the alpha value of transparent color (0-255). 255 is fully visible, 0 is hide (Data Type: Integer)
 

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.DrawImage 0,100,100, c:\test.jpg, RGB(0,0,0), 255

End Sub