Share via


IWICPixelFormatInfo2::SupportsTransparency-Methode (wincodec.h)

Gibt zurück, ob das Format transparente Pixel unterstützt.

Syntax

HRESULT SupportsTransparency(
  [out] BOOL *pfSupportsTransparency
);

Parameter

[out] pfSupportsTransparency

Typ: BOOL*

Gibt TRUE zurück, wenn das Pixelformat Transparenz unterstützt. andernfalls FALSE.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Hinweise

Ein indiziertes Pixelformat gibt TRUE nicht zurück, obwohl es möglicherweise eine gewisse Transparenzunterstützung aufweist.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile wincodec.h
DLL Windowscodecs.dll

Weitere Informationen

IWICPixelFormatInfo2