DrawAlphaPixel
Top  Previous  Next

Description

Draws a pixel in the alpha plane over the live video.


Syntax


[VB]
objActiveGige.DrawAlphaPixel X, Y, Red, Green, Blue [,Opacity ]


[C/C++]
HRESULT DrawAlphaPixel( short X, short Y, long Red,long Green, long Blue [,short Opacity ]);


Data Types
[VB]

X, Y : Integer
Red, Green, Blue: Long
Opacity: Intager

Parameters
[C/C++]

X [in], Y [in]  
Coordinates of the pixel relative to the image origin.  
Red [in], Green [in], Blue [in]  
Values specifying the color or intensity of the pixel.  
Opacity [in]  
Vaule in the range 1-100 specifies the percentage of opacity at which the pixel will be blended with the underlying pixels in the image.  
If 0, the pixel 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 blue pixel with the 80% opacity in the alpha-plane:

ActiveGige1.Acquire = 
True

ActiveGige1.DrawAlphaPixel 100,100,200,200,0,0,255,80
ActiveGige1.Alpha =  
True



Remarks


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