DeviceFrameRates.Item Property

Returns the frame rate at the given position.
Syntax:
Public Item(Index As Long) As Single
Parameter Description
Index

Specifies the Index of the rate to return. The Index must lie in the range [1, DeviceFrameRates.Count ], otherwise an error occurs.

Limitations:

Read only.

Sample:

This example selects a frame rate:

Private Sub lstFrameRateList_Click()
    Dim SelectedRate As Integer
    Dim DevFrameRateCol As DeviceFrameRates

    ' Get the DeviceFrameRates collection from ICImagingControl.
    Set DevFrameRateCol = ICImagingControl1.DeviceFrameRates

    ' Get the selected frame rate from the combo box.
    SelectedRate = lstFrameRateList.ListIndex + 1

    ' Stop the grabber before setting the new frame rate.
    cmdStopLive_Click

    ' Now set the new frame rate.
    ICImagingControl1.DeviceFrameRate = DevFrameRateCol.Item(SelectedRate)

End Sub
See also: DeviceFrameRates, DeviceFrameRates.Count

<< DeviceFrameRates