ltmmVideoFormats.Item Method

Visual Basic Example

Syntax

object.Item(Index As Long) As ltmmVideoFormat

Remarks

Retrieves the video format object at the specified zero based index.

If the method fails, an error is raised. For more information, refer to the Error Codes.

The ltmmCaptureCtrl.VideoCaptureFormats property is updated with an LtmmVideoFormats object that contains all the video formats available for the current capture device. The ltmmVideoFormats.Item method obtains an ltmmVideoFormat object for each of the supported video formats. The ltmmVideoFormat properties of each ltmmVideoFormat object, obtained using the Item method, are updated with information about that specific video format. This information includes the SubTypeName property, SubTypeFriendlyName property, Height property, Width property, Compression property and the BitCount property.

The ltmmVideoFormats.Count Property is updated with the total number of available video formats.

Platforms

Win32, x64

See Also

Elements:

LtmmVideoFormats object, ltmmVideoFormats.Count Property, ltmmVideoFormats.Selection Property, ltmmVideoFormats.Find Method

Topics:

Multimedia Properties, Methods and Events