BitmapDecoder.GetFrameAsync(UInt32) BitmapDecoder.GetFrameAsync(UInt32) BitmapDecoder.GetFrameAsync(UInt32) BitmapDecoder.GetFrameAsync(UInt32) BitmapDecoder.GetFrameAsync(UInt32) Method

Definition

Asynchronously retrieves a frame from the image file.

public : IAsyncOperation<BitmapFrame> GetFrameAsync(unsigned int frameIndex)
IAsyncOperation<BitmapFrame> GetFrameAsync(uint32_t frameIndex) const;
public IAsyncOperation<BitmapFrame> GetFrameAsync(UInt32 frameIndex)
Public Function GetFrameAsync(frameIndex As UInt32) As IAsyncOperation(Of BitmapFrame)
Windows.Graphics.Imaging.BitmapDecoder.getFrameAsync(frameIndex).done( /* Your success and error handlers */ );

Parameters

frameIndex
UInt32 UInt32 UInt32

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

Returns

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.