Method FromSystemDrawingIcon
FromSystemDrawingIcon(Icon, int, int)
Converts given System.Drawing.Icon to the BitmapImage object.
public static BitmapImage FromSystemDrawingIcon(Icon source, int height, int width)
Parameters
sourceIconSource icon.
heightintThe height, in pixels, that the result image is decoded to.
widthintThe width, in pixels, that the result image is decoded to.
Returns
- BitmapImage
The System.Windows.Media.Imaging.BitmapImage represents source icon.
FromSystemDrawingIcon(Icon)
Converts given System.Drawing.Icon to the BitmapImage object.
public static BitmapImage FromSystemDrawingIcon(Icon source)
Parameters
sourceIconSource image.
Returns
- BitmapImage
The System.Windows.Media.Imaging.BitmapImage represents source icon.