MÉTHODE ID2D1DeviceContext ::CreateBitmapFromWicBitmap(IWICBitmapSource*,constD2D1_BITMAP_PROPERTIES1&,ID2D1Bitmap1**) (d2d1_1.h)

Crée une image bitmap Direct2D en copiant une image bitmap WIC.

Syntaxe

HRESULT CreateBitmapFromWicBitmap(
  [in]                IWICBitmapSource                *wicBitmapSource,
  [in, ref, optional] const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
  [out]               ID2D1Bitmap1                    **bitmap
);

Paramètres

[in] wicBitmapSource

Type : IWICBitmapSource*

Source bitmap WIC à partir de laquelle effectuer la copie.

[in, ref, optional] bitmapProperties

Type : const D2D1_BITMAP_PROPERTIES1

Structure de propriétés bitmap qui spécifie les options de création de bitmap.

[out] bitmap

Type : ID2D1Bitmap1**

Adresse de l’objet bitmap nouvellement créé.

Valeur retournée

Type : HRESULT

Cette méthode retourne un code HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

HRESULT Description
S_OK Aucune erreur ne s'est produite.
E_OUTOFMEMORY Direct2D n’a pas pu allouer suffisamment de mémoire pour terminer l’appel.
E_INVALIDARG Un paramètre non valide a été passé à la fonction de retour.

Configuration requise

   
Client minimal pris en charge Windows 8 et mise à jour de plateforme pour Windows 7 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2012 et mise à jour de plateforme pour Windows Server 2008 R2 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête d2d1_1.h
DLL D2d1.dll

Voir aussi

ID2D1DeviceContext