Image.FromHbitmap Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un Bitmap à partir d’un handle Windows.
Surcharges
| Nom | Description |
|---|---|
| FromHbitmap(IntPtr) |
Crée un Bitmap handle vers une bitmap GDI. |
| FromHbitmap(IntPtr, IntPtr) |
Crée un Bitmap handle vers une bitmap GDI et un handle vers une palette GDI. |
FromHbitmap(IntPtr)
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
Crée un Bitmap handle vers une bitmap GDI.
public:
static System::Drawing::Bitmap ^ FromHbitmap(IntPtr hbitmap);
public static System.Drawing.Bitmap FromHbitmap(IntPtr hbitmap);
static member FromHbitmap : nativeint -> System.Drawing.Bitmap
Public Shared Function FromHbitmap (hbitmap As IntPtr) As Bitmap
Paramètres
Retours
Cette Bitmap méthode crée.
Remarques
La FromHbitmap méthode effectue une copie de la bitmap GDI ; vous pouvez donc libérer la bitmap GDI entrante à l’aide de la méthode GDI DeleteObject immédiatement après avoir créé le nouveau Image.
S’applique à
FromHbitmap(IntPtr, IntPtr)
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
- Source:
- Image.cs
Crée un Bitmap handle vers une bitmap GDI et un handle vers une palette GDI.
public:
static System::Drawing::Bitmap ^ FromHbitmap(IntPtr hbitmap, IntPtr hpalette);
public static System.Drawing.Bitmap FromHbitmap(IntPtr hbitmap, IntPtr hpalette);
static member FromHbitmap : nativeint * nativeint -> System.Drawing.Bitmap
Public Shared Function FromHbitmap (hbitmap As IntPtr, hpalette As IntPtr) As Bitmap
Paramètres
- hpalette
-
IntPtr
nativeint
Handle vers une palette GDI utilisée pour définir les couleurs bitmap si la bitmap spécifiée dans le paramètre n’est pas une bitmap indépendante de l’appareil hbitmap (DIB).
Retours
Cette Bitmap méthode crée.
Remarques
La FromHbitmap méthode effectue une copie de la bitmap GDI ; vous pouvez donc libérer la bitmap GDI entrante à l’aide de la méthode GDI DeleteObject immédiatement après avoir créé le nouveau Image.