Imaging.CreateBitmapSourceFromHIcon Methode

Definitie

Retourneert een beheerde BitmapSourceafbeelding op basis van de opgegeven aanwijzer naar een niet-beheerde pictogramafbeelding.

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

Parameters

icon
IntPtr

nativeint

Een aanwijzer naar de niet-beheerde pictogrambron.

sourceRect
Int32Rect

De grootte van de broninstallatiekopieƫn.

sizeOptions
BitmapSizeOptions

Een waarde van de opsomming die aangeeft hoe conversies moeten worden verwerkt.

Retouren

De gemaakte BitmapSource.

Kenmerken

Van toepassing op

Zie ook