This method starts the preview.

[Visual Basic]   [ Boolean = ]previewcontrolname.Start(Mode As DisplayModeConstants)
[Visual C++]     [ BOOL = ]previewcontrolname.Start(long Mode)
[VB.NET]   [ Boolean = ]previewcontrolname.Start(Mode As ImageKit10WebCamera(A)Lib.DisplayModeConstants)
[C#.NET]   [ bool = ]previewcontrolname.Start(ImageKit10WebCamera(A)Lib.DisplayModeConstants Mode)

* ImageKit10WebCameraALib refers to the ANSI version, ImageKit10WebCameraLib refers to the Unicode version.

Parameters

Name Explanation
Mode The display mode
0: Scale (The video is scaled to fit within the Preview Control while keeping the video's original height to width ratio)
1: Stretch (The video is stretched to fill the Preview Control's dimensions)

The following contants may also be used: (ikScale = 0, ikStretch = 1)

Return Value

Returns True (nonzero) if successful, returns False (0) when not successful.

Explanation

The Start method starts the preview. The Mode parameter determines how the video will be displayed in the Preview Control.

When the Start method returns True(nonzero), the State property is updated. If the return value is False (0), then values of 2 or 11 will be set in the ErrorStatus property.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation