Draw
Top  Previous  Next

Description

Displays the current frame in ActiveGeni window.


Syntax


[VB]
objActiveGeni.Draw


[C/C++]
HRESULT Draw();


Parameters

None  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the FrameAcquired event to invert pixel value in the bottom left corner of the current frame and display the processed frame in real time.

Private Sub
 Form_Load()

ActiveGeni1.Display =
 False

ActiveGeni1.Acquire =
 True
End Sub


Private Sub ActiveGeni1_FrameAcquired()
a = ActiveGeni1.GetImageData

For
 x = 0 To 200
For
 y = 0 To 200
a(x, y) = 255 - a(x, y)

Next
Next

ActiveGeni1.Draw

End Sub


 

Remarks


Use this method when the automatic live display is disabled (Display is set to False). This is typically done when you want to perform real time image processing and display the processed image in the control window.