OverlayBitmap.DrawSolidRect Method |
| This method draws a solid, filled rectangle on the live video. |
| Syntax: |
|
[C#] public void DrawSolidRect( System.Drawing.Color clr, int XStart, int YStart, int XEnd, int YEnd );
|
|
|
|
| color, clr |
|
Specifies the color of the rectangle.
|
| 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.
|
| Example: |
|
This example demonstrates how to draw a red rectangle on the live video.
[C#] OverlayBitmap ob = ICImagingControl1.OverlayBitmapAtPath[PathPositions.Device];
ob.DrawSolidRect(System.Drawing.Color.Red, 10, 10, 10, 250);
|
| See also: |
|
OverlayBitmap, OverlayBitmap.DrawFrameRect, ICImagingControl.LiveStart |