Vcl.Graphics.TIcon.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; override;

C++

__fastcall virtual TIcon()/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TIcon

Description

Creates an instance of TIcon.

Call Create to create an empty icon object. Once an image has been read into the icon from a file or stream, or by assigning another icon object, the icon can be drawn on a canvas or added to an image list. Do not create an icon object for setting the icon property of a form or picture. These objects create a TIcon object in their own constructors. Instead, use the LoadFromFile, LoadFromStream, or LoadFromClipboardFormat method on the TIcon object that you can obtain by reading the Icon property.

See Also

Code Examples