Méthode IWICImagingFactory ::CreateBitmap (wincodec.h)
Crée un objet IWICBitmap .
Syntaxe
HRESULT CreateBitmap(
[in] UINT uiWidth,
[in] UINT uiHeight,
[in] REFWICPixelFormatGUID pixelFormat,
[in] WICBitmapCreateCacheOption option,
[out] IWICBitmap **ppIBitmap
);
Paramètres
[in] uiWidth
Type : UINT
Largeur de la nouvelle bitmap .
[in] uiHeight
Type : UINT
Hauteur de la nouvelle bitmap.
[in] pixelFormat
Type : REFWICPixelFormatGUID
Format de pixels de la nouvelle bitmap.
[in] option
Type : WICBitmapCreateCacheOption
Options de création de cache de la nouvelle bitmap. Il peut s’agir de l’une des valeurs de l’énumération WICBitmapCreateCacheOption .
[out] ppIBitmap
Type : IWICBitmap**
Pointeur qui reçoit un pointeur vers la nouvelle bitmap.
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