Partager via


Imaging.CreateBitmapSourceFromHBitmap Méthode

Définition

Retourne un BitmapSource managé, selon le pointeur fourni désignant une bitmap non managée, et les informations de la palette.

public:
 static System::Windows::Media::Imaging::BitmapSource ^ CreateBitmapSourceFromHBitmap(IntPtr bitmap, IntPtr palette, System::Windows::Int32Rect sourceRect, System::Windows::Media::Imaging::BitmapSizeOptions ^ sizeOptions);
[System.Security.SecurityCritical]
public static System.Windows.Media.Imaging.BitmapSource CreateBitmapSourceFromHBitmap (IntPtr bitmap, IntPtr palette, System.Windows.Int32Rect sourceRect, System.Windows.Media.Imaging.BitmapSizeOptions sizeOptions);
public static System.Windows.Media.Imaging.BitmapSource CreateBitmapSourceFromHBitmap (IntPtr bitmap, IntPtr palette, System.Windows.Int32Rect sourceRect, System.Windows.Media.Imaging.BitmapSizeOptions sizeOptions);
[<System.Security.SecurityCritical>]
static member CreateBitmapSourceFromHBitmap : nativeint * nativeint * System.Windows.Int32Rect * System.Windows.Media.Imaging.BitmapSizeOptions -> System.Windows.Media.Imaging.BitmapSource
static member CreateBitmapSourceFromHBitmap : nativeint * nativeint * System.Windows.Int32Rect * System.Windows.Media.Imaging.BitmapSizeOptions -> System.Windows.Media.Imaging.BitmapSource
Public Shared Function CreateBitmapSourceFromHBitmap (bitmap As IntPtr, palette As IntPtr, sourceRect As Int32Rect, sizeOptions As BitmapSizeOptions) As BitmapSource

Paramètres

bitmap
IntPtr

nativeint

Pointeur vers la bitmap non managée.

palette
IntPtr

nativeint

Pointeur vers la palette de la bitmap.

sourceRect
Int32Rect

Taille de l'image source.

sizeOptions
BitmapSizeOptions

Valeur de l'énumération qui spécifie comment gérer les conversions.

Retours

BitmapSource

Élément BitmapSource créé.

Attributs

S’applique à

Voir aussi