This method sets the format functions, like output size, etc.

[Visual Basic] Public Function SetStreamFormat(ByVal index As Integer) As Boolean
[C#] public bool SetStreamFormat(int index);

Parameters

index
     Index (from 0 to the number of elements in the array returned by the GetStreamFormats method - 1)

Return Value

Returns True if successful, otherwise returns False

Explanation

The SetStreamFormat method sets the format functions, like output size, etc. The output size and other format functions can be changed even if the ShowPinDialogmethod is executed.

After changing output size, etc., these changes will not be reflected in the recording until the recording is stopped (by executing the Stop method). To set a format function, pass a value into the index parameter that correspondes to the function you'd like to set. Index values range from 0 to the number of elements returned by executing the GetStreamFormatsmethod - 1.

If successful (if true is returned), the BitCount, Compression, VideoSize, and VideoSubType properties will be changed.

If unsuccessful (if false is returned), the ETC, Value, and Step will be set in the ErrorStatusproperty.

To execute the SetStreamFormat method, you must first execute the Open and GetStreamFormats methods.

See Also

Record Members | Newtone.ImageKit.Win.WebCamera.Record

 

The ImageKit.NET3 is created by Newtone Corporation