Video Chat Pro ActiveX Control

SetOverlayImageTransColor

 

Set the transparent color and alpha value of overlay image , you must set the OverlayType =1 if you want to display the overlay image.
 

Public Function SetOverlayImageTransColor(
    ByVal iTransR As Integer, _
    ByVal iTransG As Integer, _
    ByVal iTransB As Integer, _
    ByVal iImageAlpha As Integer
    )

 

Parameter
iTransR- The color value with red component of transparent color  (0-255).
iTransG- The color value with green component of transparent color  (0-255).
iTransB- The color value with blue component of transparent color  (0-255).
iImageAlpha - The alpha value of overlay image (0-255). A pixel with an alpha value of zero is completely transparent. A pixel with an alpha value of 255 is opaque.

No Return Value

Example

   

Visual Basic Syntax
VideoChatSender1.VideoDevice=0
VideochatSender1.AudioDevice=0
VideochatSender1.VideoFormat =0
VideochatSender1.FrameRate = 25
VideochatSender1.VideoBitrate = 50000
VideochatSender1.AudioComplexity = 0
VideochatSender1.AudioQuality = 0
VideochatSender1.SendVideoStream = True
VideochatSender1.SendAudioStream = True
VideoChatSender1.OverlayType = 1
iresult = VideochatSender1.Connect("192.168.1.12", 7000)
VideoChatSender1.SetOverlayImage "c:\test\image.bmp"
VideoChatSender1.SetOverlayImagePos 0,0
VideoChatSender1.SetOverlayImageTransColor 0,0,0,255