Edit

Share via


IWICBitmapFrameChainReader::GetChainedFrame method (wincodec.h)

Retrieves a frame for a chain of a given type.

Syntax

HRESULT GetChainedFrame(
  WICBitmapChainType    chainType,
  UINT                  index,
  IWICBitmapFrameDecode **ppIBitmapFrame
);

Parameters

chainType

Type: WICBitmapChainType

The chain type for which to retrieve a frame.

index

Type: UINT

The index of the frame to retrieve.

ppIBitmapFrame

Type: IWICBitmapFrameDecode**

Receives the frame at index for chains of type chainType.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Header wincodec.h