Aracılığıyla paylaş


Imaging.CreateBitmapSourceFromHBitmap Yöntem

Tanım

Yönetilmeyen bit eşlem ve palet bilgilerine yönelik sağlanan işaretçiyi temel alarak yönetilen BitmapSourcebir döndürür.

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

Parametreler

bitmap
IntPtr

nativeint

Yönetilmeyen bit eşlem işaretçisi.

palette
IntPtr

nativeint

Bit eşlem palet haritasının işaretçisi.

sourceRect
Int32Rect

Kaynak görüntünün boyutu.

sizeOptions
BitmapSizeOptions

Dönüştürmelerin nasıl işlendiğini belirten sabit listesi değeri.

Döndürülenler

BitmapSource

Oluşturulan BitmapSource.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.