Partager via


Imaging.CreateBitmapSourceFromHIcon Méthode

Définition

Retourne un BitmapSource managé, selon le pointeur fourni désignant une image d'icône non managée.

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

Paramètres

icon
IntPtr

nativeint

Pointeur vers la source de l'icône non managée.

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