System.Drawing.Icon.ToBitmap Method

Converts this System.Drawing.Icon to a GDI+ System.Drawing.Bitmap.

Syntax

public Bitmap ToBitmap ()

Returns

A System.Drawing.Bitmap that represents the converted System.Drawing.Icon.

Remarks

The transparent areas of the icon are lost when it is converted to a bitmap, and the transparent color of the resulting bitmap is set to RGB(13,11,12). The returned bitmap has the same height and width as the original icon.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0