MÉTHODE ID2D1RenderTarget ::CreateBitmap(D2D1_SIZE_U,constD2D1_BITMAP_PROPERTIES&,ID2D1Bitmap**) (d2d1.h)

Crée une bitmap Direct2D non initialisée.

Syntaxe

HRESULT CreateBitmap(
  D2D1_SIZE_U                    size,
  const D2D1_BITMAP_PROPERTIES & bitmapProperties,
  ID2D1Bitmap                    **bitmap
);

Paramètres

size

Type : [in] D2D1_SIZE_U

Dimension de la bitmap à créer en pixels.

bitmapProperties

Type : [in] const D2D1_BITMAP_PROPERTIES &

Format de pixel et points par pouce (PPP) de la bitmap à créer.

bitmap

Type : [out] ID2D1Bitmap**

Lorsque cette méthode est retournée, contient un pointeur vers un pointeur vers la nouvelle bitmap. Ce paramètre est passé sans être initialisé.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT .

Configuration requise

   
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Platform Update pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête d2d1.h
Bibliothèque D2d1.lib
DLL D2d1.dll

Voir aussi

ID2D1RenderTarget