Method icon.ToWpfImage
Overload
Converts native icon to WPF image object.
public BitmapSource ToWpfImage(bool destroyIcon = true)
Parameters
destroyIcon (bool)
If |
Returns
BitmapSource
|
Remarks
The image is not suitable for WPF window icon. Instead use icon.SetWindowIcon or WPF image loading functions.