共用方式為


IWICPixelFormatInfo2::SupportsTransparency 方法 (wincodec.h)

傳回格式是否支援透明圖元。

語法

HRESULT SupportsTransparency(
  [out] BOOL *pfSupportsTransparency
);

參數

[out] pfSupportsTransparency

類型: BOOL*

如果圖元格式支援透明度,則傳回 TRUE ;否則為 FALSE

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

即使索引圖元格式可能有一些透明度支援,也不會傳回 TRUE

規格需求

需求
最低支援的用戶端 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 wincodec.h
Dll Windowscodecs.dll

另請參閱

IWICPixelFormatInfo2