ImageConverter.HiconFromBitmapSource(BitmapSource) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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
已转换图标