OverlayBitmap.Fill Method

This method fills the entire overlay bitmap with the passed color.
Syntax:
 
Public Sub Fill( color As Long )
Parameter Description
color, clr

Specifies the color used to fill the OverlayBitmap.

Limitations:

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

Remarks:

The Fill method is used to fill an entire overlay bitmap with the passed color. This overwrites all previously drawn texts and graphics. If the dropout color is passed to the Fill method, there is no overlay on the video (as the overlay is empty). The Fill method is only successful, after ICImagingControl.LiveStart has been called once.

Example:

This example demonstrates how to fill the entire overlay bitmap with the dropout color.

Dim ob As OverlayBitmap
Set ob = ICImagingControl1.OverlayBitmap
' Enable the overlay bitmap for drawing. 
ob.Enable = True
ICImagingControl1.LiveStart
' Set magenta as dropout color. 
ob.DropOutColor = RGB(255, 0, 255)
' Fill the overlay bitmap with the dropout color.
ob.Fill ob.DropOutColor
See also: OverlayBitmap, OverlayBitmap.DropOutColor, ICImagingControl.LiveStart

<< ICImagingControl.OverlayBitmap

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.