Méthode IWICFormatConverter ::CanConvert (wincodec.h)
Détermine si le format de pixel source peut être converti au format de pixel de destination.
Syntaxe
HRESULT CanConvert(
[in] REFWICPixelFormatGUID srcPixelFormat,
[in] REFWICPixelFormatGUID dstPixelFormat,
[out] BOOL *pfCanConvert
);
Paramètres
[in] srcPixelFormat
Type : REFWICPixelFormatGUID
Format du pixel source.
[in] dstPixelFormat
Type : REFWICPixelFormatGUID
Format de pixel de destination.
[out] pfCanConvert
Type : BOOL*
Pointeur qui reçoit une valeur indiquant si le format de pixel source peut être converti au format de pixel de destination.
Valeur retournée
Type : HRESULT
Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.
Spécifications
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows XP avec SP2, Windows Vista [applications de bureau | Applications UWP] |
Serveur minimal pris en charge | Windows Server 2008 [applications de bureau | applications UWP] |
Plateforme cible | Windows |
En-tête | wincodec.h |
Bibliothèque | Windowscodecs.lib |
DLL | Windowscodecs.dll |
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour