This method retrieves the format functions of the specified index.

[Delphi]   [ Boolean = ]previewcontrolname.GetStreamFormat(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 GetStreamFormat method retrieves the format functions of the specified index. If you pass an Index of -1, you will retrieve the currently selected format functions. Passing in Index values from 0 to GetStreamFormats method's return value -1 will give you the format functions for the specified index.

If the GetStreamFormat method is successful, if the return value is True, then the following properties are updated: BitCount, Compression, FrameRate, MaximumFrameRate, MinimumFrameRate, VideoHeight, VideoSubType, and VideoWidth. If the GetStreamFormat method is not successful, if the return value is False, then values of 5 or 11 will be set in the ErrorStatus property.

Before executing the GetStreamFormat method, you must first execute the Open and GetStreamFormats methods.

 

The ImageKit10 VCL is a product created by Newtone Corporation