IC Imaging Control .NET

OverlayBitmap.DrawFrameRect Method

OverlayBitmap.DrawFrameRect Method

This method draws an empty frame rectangle on the live video.
Syntax:
[VB.NET]
Public Sub DrawFrameRect( clr As System.Drawing.Color, XStart As Integer, YStart As Integer, XEnd As Integer, YEnd As Integer )
[C#]
public void DrawFrameRect( System.Drawing.Color clr, int XStart, int YStart, int XEnd, int YEnd );
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 version 2.0

Example:

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

[VB.NET]
Dim ob As OverlayBitmap ob = IcImagingControl1.OverlayBitmap ob.DrawFrameRect(System.Drawing.Color.Red, 10, 10, 10, 250)
[C#]
OverlayBitmap ob = ICImagingControl1.OverlayBitmap; ob.DrawFrameRect(System.Drawing.Color.Red, 10, 10, 10, 250);
See also: OverlayBitmap, OverlayBitmap.DrawSolidRect, ICImagingControl.LiveStart

<< ICImagingControl.OverlayBitmap

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us