ProImage Help

Using Live Video Image Capture without the Editor

Using Live Video Image Capture without the Editor

Previous topic Next topic  

Using Live Video Image Capture without the Editor

Previous topic Next topic  

To add Live Video Image Capture to your application you first need to add the ProImage Global Extension and ImageEx.

 

The next step if your not using the ProImage Editor is to import the ProImage Video Capture TXA into your application.

 

From the Application pulldown menu activate the Utility Template selector:

 

clip0145

Type in ProImage and highlight the ImportProImageVideoCapture item.  Then click Select to import the TXA.

 

clip0146

 

This will import the ProImage Live Video Image Capture procedure into your application.

 

Next follow these steps:

 

1. Add the ProImage Procedure Support extension template to your FORM.

 

clip0149

 

2) In the Window Formatter, add the ProImage Video Capture Button control template to the FORM where you want to call the feature.

 

clip0156

 

You will see this default button added:

 

clip0155

 

Right-click on the button, select Properties and on the Action tab click the Call ProImage Live Video Capture button.

 

clip0158

 

 

Enter the name of the ImageExBitmapClass object that you want to receive the image captured in the field provided:

 

clip0159

 

Note: this can be the bitmap of an ImageEx control like a Viewer or Paintbox, or it can be just an ImageExBitmapClass object.

 

For an ImageEx Viewer control it will be the name of the control instance, then a period followed by the word "Bitmap".

 

Example: IEView.Bitmap

 

If your using an ImageEx Paintbox control then you use the word "Buffer" instead of "Bitmap"

 

Example: IEPaint.Buffer

 

 

That is all there is to it!

 

Using these settings when the user clicks the Video Capture button, the Video Capture window will open and the procedure will automatically select the default capture driver (if one is installed).

 

The user will see a live preview of what the camera is seeing as shown here:

 

clip0144

 

 

They can use the Pause/Resume button to toggle the live preview.

 

Then at any time they can click the Capture button to grab the current frame displayed.

 

Then ProImage will process the user selection and return the image to the control on the parent form as shown here:

 

 

clip0160

 

 

Note that this method returns the entire image from the Live Video Preview based on the settings for the capture device.

 

If you need to allow the user to crop a portion of the image captured, use the capture with the ProImage Editor.

 

The Live Video Image Capture Controls are discussed here.