IGxIcon.ToBitmap

Syntax

ToBitmap: IGxBitmap;

Description

The ToBitmap method transforms the icon to a bitmap.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Icon: IGxIcon;

Bitmap: IGxBitmap;

Begin

Icon := Self.Icon;

Bitmap:=Icon.ToBitmap;

End Sub Button1OnClick;

After executing the example on clicking the button the Bitmap variable contains a copy of the form icon in the bit format.

See also:

IGxIcon