ImageConverter.HiconFromBitmapSource(BitmapSource) 方法

定义

将 BitmapSource 转换为 HICON。 调用方负责销毁返回的 HICON。 请勿调用 FromHandle,要求返回的图标对象具有 HICON 的所有权。

public:
 static IntPtr HiconFromBitmapSource(System::Windows::Media::Imaging::BitmapSource ^ bitmapSource);
public static IntPtr HiconFromBitmapSource (System.Windows.Media.Imaging.BitmapSource bitmapSource);
static member HiconFromBitmapSource : System.Windows.Media.Imaging.BitmapSource -> nativeint
Public Shared Function HiconFromBitmapSource (bitmapSource As BitmapSource) As IntPtr

参数

bitmapSource
BitmapSource

要转换的图像

返回

IntPtr

nativeint

已转换图标

适用于