Imaging.CreateBitmapSourceFromHIcon(IntPtr, Int32Rect, BitmapSizeOptions) Imaging.CreateBitmapSourceFromHIcon(IntPtr, Int32Rect, BitmapSizeOptions) Imaging.CreateBitmapSourceFromHIcon(IntPtr, Int32Rect, BitmapSizeOptions) Imaging.CreateBitmapSourceFromHIcon(IntPtr, Int32Rect, BitmapSizeOptions) Method

定義

指定されたアンマネージド アイコン イメージへのポインターに基づいて、マネージド BitmapSource を返します。Returns a managed BitmapSource, based on the provided pointer to an unmanaged icon image.

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);
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

パラメーター

icon
IntPtr IntPtr IntPtr IntPtr

アンマネージ アイコン ソースへのポインター。A pointer to the unmanaged icon source.

sourceRect
Int32Rect Int32Rect Int32Rect Int32Rect

ソース イメージのサイズ。The size of the source image.

sizeOptions
BitmapSizeOptions BitmapSizeOptions BitmapSizeOptions BitmapSizeOptions

変換を処理する方法を指定する列挙体の値。A value of the enumeration that specifies how to handle conversions.

戻り値

セキュリティ

SecurityPermission
このメソッドからオブジェクトを返す場合は。to return an object from this method. 関連付けられた列挙型:UnmanagedCodeAssociated enumeration: UnmanagedCode

適用対象

こちらもご覧ください