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
source
IconSource icon.
height
intThe height, in pixels, that the result image is decoded to.
width
intThe 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
source
IconSource image.
Returns
- BitmapImage
The System.Windows.Media.Imaging.BitmapImage represents source icon.