Share via


BitmapDecoder.GetFrameAsync(UInt32) Metodo

Definizione

Recupera in modo asincrono un frame dal file di immagine.

public:
 virtual IAsyncOperation<BitmapFrame ^> ^ GetFrameAsync(unsigned int frameIndex) = GetFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<BitmapFrame> GetFrameAsync(uint32_t const& frameIndex);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<BitmapFrame> GetFrameAsync(uint frameIndex);
function getFrameAsync(frameIndex)
Public Function GetFrameAsync (frameIndex As UInteger) As IAsyncOperation(Of BitmapFrame)

Parametri

frameIndex
UInt32

unsigned int

uint32_t

Indice in base zero del frame da recuperare.

Restituisce

Oggetto che gestisce il recupero asincrono del frame.

Attributi

Commenti

Non è necessario usare questo metodo per accedere ai dati dal primo frame in un file di immagine. BitmapDecoder fornisce già un metodo per accedere al primo frame.

È possibile ottenere il numero totale di fotogrammi nell'immagine usando la proprietà FrameCount .

Si applica a