Viscom Software VideoCap ActiveX Control

DrawImageHandle Method

Description:   

Draw the image on a video stream. Make sure you set UseOverlay property to true.

Usage:   

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

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 bitmap handle. (Data Type: long)

Parameter5- the transparent color of image. (Data Type: RGB)
 
Parameter6- the alpha value of transparent color (0-255). (Data Type: Integer)


Return Value:

No Return value.

Example:   

This Visual Basic example draw the image in preview window and file.

VideoCap1.Start
VideoCap1.DrawImage 0, 0, 10, myBitmapHandle, RGB(0,0,0),255