Sdílet prostřednictvím


Imaging.CreateBitmapSourceFromHBitmap Metoda

Definice

Vrátí spravovanou BitmapSourcehodnotu na základě zadaného ukazatele na nespravované informace o rastrovém obrázku a paletě.

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

Parametry

bitmap
IntPtr

nativeint

Ukazatel na nespravovaný rastrový obrázek.

palette
IntPtr

nativeint

Ukazatel na mapu palety rastru.

sourceRect
Int32Rect

Velikost zdrojové image.

sizeOptions
BitmapSizeOptions

Hodnota výčtu, která určuje způsob zpracování převodů.

Návraty

Vytvořený BitmapSourceobjekt

Atributy

Platí pro

Viz také