ImageConverter.HiconFromBitmapSource(BitmapSource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a BitmapSource to an HICON. The caller is responsible for destroying the returned HICON. Do not call Icon.FromHandle expecting the returned Icon object to have ownership of the 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
Parameters
- bitmapSource
- BitmapSource
Image to convert
Returns
IntPtr
nativeint
Converted icon