OverlayBitmap.DrawFrameRect Method

This method draws an empty frame rectangle on the live video.
Syntax:
Public Sub DrawFrameRect( color As Long, startcolumn As Long, startrow As Long, endcolumn As Long, endrow As Long)
Parameter Description
color, clr

Specifies the color of the frame.

startcolumn, XStart

Specifies the column in pixel units of the upper left hand corner of the rectangle on the live video.

startrow, YStart

Specifies the row in pixel units of the upper left hand corner of the rectangle on the live video.

endcolumn, XEnd

Specifies the column in pixel of the lower right hand corner of the rectangle on the live video.

endrow, YEnd

Specifies the row in pixel units of the lower right hand corner of the rectangle on the live video.

Limitations:

Run time only. Only after ICImagingControl.LiveStart has been called once.

Information:

Introduced in IC Imaging Control 2.0

Example:

This example demonstrates how to draw a red frame on the live video.

Dim ob As OverlayBitmap

Set ob = ICImagingControl1.OverlayBitmap

ob.DrawFrameRect RGB(255, 0, 0), 10,10, 10, 250
See also: OverlayBitmap, OverlayBitmap.DrawSolidRect, ICImagingControl.LiveStart

<< ICImagingControl.OverlayBitmap