Visual Basic 6

Opening and Handling Devices
The following programming examples show how to use IC Imaging Control to open single and multiple devices. IC Imaging Control offers a built-in dialog for this purpose.
»Open Device
This programming example illustrates how to open a device in IC Imaging Control and display its live video stream on screen.
»Open with Shipped Dialog Box
The following programming example (Visual Basic 6) shows how you can use IC Imaging Control to open a device.
»Open Multiple Devices
This source code sample illustrates how to simultaneously open two devices and display their live video streams on screen.
»List Available Devices
This brief source code snippet illustrates how to list all devices that are available on a system.
»Read Serial Number
This programming example illustrates how to read a device's serial number, using IC Imaging Control.
»Use Built-In Property Dialogs
This programming example illustrates how to use IC Imaging Control to modify device properties, using the built-in property dialog.
»Modify device properties
The following programming example shows how you can use IC Imaging Control to modify device properties.
»Save and restore device properties
The following programming example shows how you can use IC Imaging Control to save and restore device properties.
Live Display
The following programming examples show how you can use IC Imaging Control to display a live video in a window, to display a full screen video, to scale an image data stream and to create an overlay of live videos with graphics (e.g. cross-hairs or clock).
»Display live video in a window
TThe following programming example shows how you can use IC Imaging Control to display a live video in a window.
»Full screen video
The following programming example shows how you can use IC Imaging Control to display a full screen video.
»Overlay: moveable crosshairs
The following programming example shows how you can use IC Imaging Control to overlay an image data stream with movable crosshairs.
»Mark over/underexposed pixels 1
The following programming example shows how you can use IC Imaging Control to mark over and underexposed pixels.
»Mark over/underexposed pixels 2
This programming example extents the previous by showing how to control the parameters for the visualization of over and underexposed pixels programmatically.
Image Acquisition
These programming examples show how to use IC Imaging Control to acquire single images and save them as BMP or JPG files and how to acquire sequences of single images and save them as automatically enumerated BMP or JPG files.
»Acquiring an image
The following programming example shows how you can use IC Imaging Control to take and display a single image.
»Saving an image (BMP)
The following programming example shows how you can use IC Imaging Control to freeze an image data stream and save the frozen image as a BMP file.
»Saving an image (JPEG)
The following programming example shows how you can use IC Imaging Control to freeze an image data stream and save the frozen image as a JPEG file.
»Saving a sequence of single images
The following programming example shows how you can use IC Imaging Control to Save single images of an image data stream as BMP files (consecutively numbered image sequence).
Video Acquisition
These programming examples show how you can use IC Imaging Control to create a list all codecs which are available on your computer, to show the property page of these codecs as well as acquire image data streams and save them as an AVI file.
»Saving a sequence of single images
The following programming example shows how you can use IC Imaging Control to Save single images of an image data stream as BMP files (consecutively numbered image sequence).
»Codec property page
The following programming example shows how you can use IC Imaging Control to modify the settings of a codec.
»Saving an AVI
The following programming example shows how you can use IC Imaging Control to save an image data stream as AVI file.
»Save a time-limited AVI
The following programming example shows how to save an image data stream as a time-limited AVI file with IC Imaging control.
Image Processing
The following programming examples show how to use IC Imaging Control to access image data, to enhance the contrast of an image and to realize a binarization.
»Accessing image data
The following programming example shows how you can use IC Imaging Control to access image data.
»Contrast Enhancement 1
The following programming example shows how you can use IC Imaging Control to enhance the contrast of an image.
»Contrast Enhancement 2
This programming example extents the Contrast Enhancement 1 example by showing how to control the parameters for the contrast enhancement programmatically.
»Simple Binarization
The following programming example shows how you can use IC Imaging Control to realize a binarization of a graylevel image with a fixed threshold.
Creating Setups
These samples illustrate how to create setups for IC Imaging Control applications.
»Creating a Setup Program for an IC ActiveX Application
This example illustrates how to use the freeware tool "Innosetup" to create setup programs for IC Imaging Control ActiveX applications.
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, LiveDocx, phpLiveDocx and Forums.