Compartir a través de


Imaging.CreateBitmapSourceFromHBitmap Método

Definición

Devuelve un objeto BitmapSource administrado según el puntero proporcionado a una información de paleta y un mapa de bits no administrado.

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

Parámetros

bitmap
IntPtr

nativeint

Puntero al mapa de bits no administrado.

palette
IntPtr

nativeint

Puntero al mapa de la paleta del mapa de bits.

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