TClrIcon Class

Represents a Windows icon, which is a small bitmap image that is used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system.

Namespace: CNClrLib.Control.Graphics
TInterfacedPersistent
  CNClrLib.Control.Graphics.TClrIcon
type
 TClrIcon = class(TInterfacedPersistent, IStreamPersist)
 end;

The TClrIcon type exposes the following members.

Show:
 NameDescription
Create(_Icon)

Initializes a new instance of the TClrIcon class using the specified .Net icon object.

Destroy

Frees the resources allocated with a TClrIcon instance.

Top
Show:
 NameDescription
Height

Gets the height of this Icon.

Icon

Gets or sets the .Net icon object as interface.

OnChange

Occurs when a property of the Icon class changes.

Width

Gets the width of this Icon.

Top
Show:
 NameDescription
Assign(TPersistent)

Copies the contents of another, similar object.

AssignTo(TPersistent)

Represents method AssignTo(TPersistent).

Changed(TObject)

Represents method Changed(TObject).

LoadFromFile(string)

Overloaded. Creates an Icon class from the specified file name.

LoadFromFile(string,Integer,Integer)

Overloaded. Creates an Icon class with the specified width and height from the specified file.

LoadFromFile(string,_Size)

Overloaded. Creates an Icon class of the specified size from the specified file.

LoadFromStream(TStream)

Overloaded. Creates an Icon class from the specified data stream.

LoadFromStream(_Stream)

Overloaded. Creates an Icon class from the specified data stream.

LoadFromStream(_Stream,Integer,Integer)

Overloaded. Creates an Icon class from the specified data stream and with the specified width and height.

LoadFromStream(_Stream,_Size)

Overloaded. Creates an Icon class of the specified size from the specified stream.

SaveToFile(string)

Overloaded. Saves this Icon to the specified file name.

SaveToStream(TStream)

Overloaded. Saves this Icon to the specified output Stream.

SaveToStream(_Stream)

Overloaded. Saves this Icon to the specified output Stream.

ToBitmap

Converts this Icon to a GDI+ Bitmap.

ToStream

Converts the icon to a .Net Stream object as interface.

Top