This method sets the format functions (output size, etc.)

[Delphi]   [ Boolean = ]previewcontrolname.SetStreamFormat(Index: Integer)

Parameters

Name Explanation
Index The index (With a range from 0 to GetStreamFormats method's return value - 1)

Return Value

Returns True if successful, returns False when not successful.

Explanation

The SetStreamFormat method sets the format functions. Use this method to change the preview's output size, etc.

It is possible to change preview's output size even if ShowCapturePinDialog method has been executed. If output size or other format settings are changed while the preview is running, those changes will not take effect. You will have to stop the preview (execute the Stop method) first and then change the settings.

When passing values into the Index parameter, values from 0 to GetStreamFormats method's return value - 1 will set that format's functions.

When the SetStreamFormat method's return value is True (nonzero), the following properties are updated: BitCount, Compression, VideoHeight, VideoSubType, and VideoWidth. When the return value is False, values of 2, 5, or 11 will be set in the ErrorStatus property.

Important: Before executing the SetStreamFormat method, you must first execute the Open method and the GetStreamFormats method.

 

The ImageKit10 VCL is a product created by Newtone Corporation