Table of Contents

Method FromSystemDrawingIcon

Namespace
Alternet.Common.Wpf
Assembly
Alternet.Common.Wpf.v10.dll

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 Icon

Source icon.

height int

The height, in pixels, that the result image is decoded to.

width int

The 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 Icon

Source image.

Returns

BitmapImage

The System.Windows.Media.Imaging.BitmapImage represents source icon.