DrawAlphaLine
Top  Previous  Next

Description

Draws a line in the alpha plane over the video window.


Syntax


[VB]
objActiveUSB.DrawAlphaline X1, Y1, X2, Y2, Width, Red , Green, Blue [, Opacity]


[C/C++]
HRESULT DrawAlphaline( short X1, short Y2, short X2, short Y2, short Width, long Red , long Green, long Blue [, short Opacity ]);


Data Types
[VB]

X1, Y1, X2, Y2 : Integer
Width: Integer
Red, Green, Blue: Long
Opacity: Intager


Parameters
[C/C++]

X1 [in], Y1 [in], X2 [in], Y2 [in]  
Coordinates of the starting and ending point of the line relative to the image origin.  
Width [in]  
Width of the line in pixels.  
Red [in], Green [in], Blue [in]  
Values specifying the color or intensity of the line.  
Opacity [in]  
Vaule in the range 1-100 specifying the percentage of opacity at which the line will be blended with the underlying pixels in the image.  
If 0, the pixels of the line will be reset to the fully transparent state.  
If omitted, default value of 100 is used.  
 
Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


The following VB example draws a solid green line of the width of 3 in the alpha-plane over the live video:

ActiveUSB1.Acquire = 
True

ActiveUSB1.DrawAlphaLine 100,100,200,200,3,0,255,0
ActiveUSB1.Alpha =  
True



Remarks


To draw multiple lines, call this method several times. For more information on the alpha-plane drawing refer to Alpha.