DrawText
Top  Previous  Next

Description

Draws a pixel in the current image frame.


Syntax


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


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


Data Types
[VB]

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

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. If Green and Blue arguments are omitted, they will be assigned the value of Red.  
Opacity [in]  
An optional integer between 0 and 100 specifying the percentage of opacity at which the pixel will be blended with the underlying pixel in the image. If omitted, default value of 100 is used.  
 
Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


The following VB example embeds a pixel into the live video:

Private Sub
ActiveGige1_FrameAcquired()

      ActiveGige1.DrawPixel 50,100, 255

End Sub


Remarks


To draw multiple pixels, call this method several times.