IWICFormatConverter::CanConvert-Methode (wincodec.h)

Bestimmt, ob das Quellpixelformat in das Zielpixelformat konvertiert werden kann.

Syntax

HRESULT CanConvert(
  [in]  REFWICPixelFormatGUID srcPixelFormat,
  [in]  REFWICPixelFormatGUID dstPixelFormat,
  [out] BOOL                  *pfCanConvert
);

Parameter

[in] srcPixelFormat

Typ: REFWICPixelFormatGUID

Das Quellpixelformat.

[in] dstPixelFormat

Typ: REFWICPixelFormatGUID

Das Zielpixelformat.

[out] pfCanConvert

Typ: BOOL*

Ein Zeiger, der einen Wert empfängt, der angibt, ob das Quellpixelformat in das Zielpixelformat konvertiert werden kann.

Rückgabewert

Typ: HRESULT

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

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows XP mit SP2, Windows Vista [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile wincodec.h
Bibliothek Windowscodecs.lib
DLL Windowscodecs.dll

Weitere Informationen

IWICFormatConverter

Native Pixelformate