共用方式為


GetImageDecoders 函式 (gdiplusimagecodec.h)

GetImageDecoders函式會取得ImageCodecInfo物件的陣列,其中包含可用影像解碼器的相關資訊。

語法

Status GetImageDecoders(
  [in]  UINT           numDecoders,
  [in]  UINT           size,
  [out] ImageCodecInfo *decoders
);

參數

[in] numDecoders

類型: UINT

指定可用影像解碼器數目的整數。 呼叫 GetImageDecodersSize 來判斷此號碼。

[in] size

類型: UINT

整數,指定 ImageCodecInfo 物件陣列的大小,以位元組為單位。 呼叫 GetImageDecodersSize 來判斷此號碼。

[out] decoders

類型: ImageCodecInfo*

接收 ImageCodecInfo 物件陣列之緩衝區的指標。 您必須為此緩衝區配置記憶體。 呼叫 GetImageDecodersSize 以判斷所需緩衝區的大小。

傳回值

類型: 狀態

如果函式成功,它會傳回 Ok,這是 Status 列舉的元素。

如果函式失敗,它會傳回 Status 列舉的其他其中一個專案。

需求

   
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限桌面應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
目標平台 Windows
標頭 gdiplusimagecodec.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib

另請參閱

點陣圖

GetImageDecodersSize

GetImageEncoders

GetImageEncodersSize

映像

中繼檔

使用影像編碼器和解碼器