Microsoft DirectX 9.0

AMTimelineSrc.SetDefaultFPS Method

The SetDefaultFPS method sets the source object's default frame rate.

Syntax

object.SetDefaultFPS(
    FPS As Double
)

Parameters

FPS

Default frame rate, in frames per second.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to the following value:

Value Description
E_INVALIDARG The specified frame rate is less than zero.

Remarks

The render engine uses this value if it cannot determine the frame rate from the original source file.

Call this method only for source files without a predefined frame rate. For bitmap and JPEG files, the default frame rate is zero, which causes the source to be rendered as a still image. To use the image as the first frame in a DIB sequence, set the frame rate to a value greater than zero.

See Also