Microsoft DirectX 9.0

AMTimelineSrc.GetDefaultFPS Method

The GetDefaultFPS method retrieves the source object's default frame rate. The render engine uses this value if it cannot determine the frame rate from the original source.

Syntax

object.GetDefaultFPS(
    pFPS As Double
)

Parameters

pFPS

Variable that receives the default frame rate, in frames per second.

Error Codes

If the method fails, an error is raised.

Remarks

The default frame rate is not required if the file format specifies the frame rate. This is the case for audio and video formats.

If the source is a bitmap or JPEG image, the render engine uses it as the first image in a device-independent bitmap (DIB) sequence, with a frame rate equal to the default frame rate. To render a static image, rather than a DIB sequence, set the default frame rate to 0.

If the source is a GIF, do not set the frame rate. For animated GIFs, the GIF file specifies the delay between each image.

See Also