[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TIcon

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension

Declaration

Source position: graphics.pp line 1529

type TIcon = class(TCustomIcon)

protected

  function GetTypeID; override;

  procedure HandleNeeded; override;

  

public

  function ReleaseHandle;

  

  property Handle: HICON; [rw]

  

end;

Inheritance

TIcon

  

TIcon - icons, small images typically associated with applications, controls, etc. Stored in files with .ico extension

|

TCustomIcon

  

TCustomIcon - base class for TIcon

|

TRasterImage

  

TRasterImage - base class for a number of graphic controls, including TCustomBitmap and TCustomIcon, which use a raster of dots to display graphic information

|

TGraphic

  

Base class for dealing with Graphic images

|

TPersistent

|

TObject

Description

TIcon reads and writes .ICO file format.

A .ico file typically contains several versions of the same image.

When loading, the largest/most colourful image is loaded as the TBitmap and so can be handled as any other bitmap. Any other versions of the images are available via the Bitmaps property

Writing is not (yet) implemented.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.