View Full Version : Erasing Overlay Bitmap
July 12, 2004, 21:13:02
Is it possible to draw on overlay bitmap and then reset to a default or just erase everything on the overlay while allowing you to draw on the image again. I know it does this when you exit and reload the videocapture, but I would like to do it without having to go back to the menu and then reload the form.
July 13, 2004, 09:09:27
Yes, it is possible to erase the overlay bitmap. You only need to fill the bitmap with the dropout color to erase the entire bitmap. If you want to erase only portions of the overlay bitmap, draw a solid rectrangle with the dropout color.
If you want to erase drawings like lines and rectangles, just draw them again using the dropout color.
The following code sample sets magenta as dropout color and fills the entire bitmap with magenta. This erases any drawings on the overlay bitmap.
Dim ob As OverlayBitmap
If ICImagingControl1.DeviceValid = True Then
Set ob = ICImagingControl1.OverlayBitmap
' Enable the overlay bitmap for drawing.
ob.Enable = True
' Set magenta as dropout color.
ob.DropOutColor = RGB(255, 0, 255)
' Fill the overlay bitmap with the dropout color.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.