Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BitmapDecoder.GetFrameAsync | getFrameAsync method

Applies to Windows and Windows Phone

Asynchronously retrieves a frame from the image file.

Syntax


bitmapDecoder.getFrameAsync(frameIndex).done( /* Your success and error handlers */ );

Parameters

frameIndex

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The zero-based index of the frame to be retrieved.

Return value

Type: IAsyncOperation<BitmapFrame>

Object that manages the asynchronous retrieval of the frame.

Remarks

You don't need to use this method to access data from the first frame in an image file. BitmapDecoder already provides a method to access the first frame.

You can get the total number of frames on the image using the FrameCount property.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

See also

BitmapDecoder

 

 

Show:
© 2014 Microsoft