Udostępnij za pośrednictwem


Imaging.CreateBitmapSourceFromHIcon Metoda

Definicja

Zwraca zarządzany BitmapSourceobiekt na podstawie podanego wskaźnika do obrazu ikony niezarządzanej.

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

Parametry

icon
IntPtr

nativeint

Wskaźnik do źródła ikony niezarządzanej.

sourceRect
Int32Rect

Rozmiar obrazu źródłowego.

sizeOptions
BitmapSizeOptions

Wartość wyliczenia, która określa sposób obsługi konwersji.

Zwraca

BitmapSource

Utworzony element BitmapSource.

Atrybuty

Dotyczy

Zobacz też