Compartir a través de


Imaging.CreateBitmapSourceFromHIcon Método

Definición

Devuelve un objeto BitmapSource administrado en función del puntero proporcionado a una imagen del icono no administrada.

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

Parámetros

icon
IntPtr

nativeint

Puntero al origen del icono no administrado.

sourceRect
Int32Rect

Tamaño de la imagen de origen.

sizeOptions
BitmapSizeOptions

Valor de la enumeración que especifica el modo en que se controlan las conversiones.

Devoluciones

BitmapSource

Objeto BitmapSource creado.

Atributos

Se aplica a

Consulte también