Sign in Join
FPDoc Onlineexperiment

TIcon class

In unit Graphics

Implements an icon image type; small images typically associated with applications, controls, etc.

Declaration

pascal
TIcon = class(TCustomIcon)

Inheritance

  1. TIcon
  2. TCustomIcon
  3. TRasterImage
  4. TGraphic
  5. TPersistent
  6. TObject

Description

Icons can be loaded from .ICO files, or from Lazarus resources. An icon resource typically contains several versions of the same image, in multiple resolutions and color depths.

When loading, the largest/most colorful image is loaded as the Bitmap property, and so can be handled as any other bitmap.

Errors

Writing to icon files is not (yet) implemented.

Properties

HandlepublicHandle used to access the image data for the icon.

Methods

GetStreamSignatureprotectedGets the stream signature used for icon data.
GetTypeIDprotectedGets the icon type identifier used in the image list header.
HandleNeededprotectedEnsures that handle values for the icon are valid.
LoadFromResourceHandlepublicLoads icon data from the specified instance and resource handles.
ReleaseHandlepublicFrees the Handle used for the shared image in the Icon.
GetResourceTypepublicGets the Integer Resource Type for the class instance.

Inherited

From TCustomIcon (50)

Add Assign AssignImage BitmapHandleAllocated CanShareImage CheckRequestedSize Clear Count Create Current Delete ExportImage GetBestIndexForSize GetBitmapHandle GetDefaultSize GetDescription GetFileExtensions GetIndex GetMaskHandle GetPalette GetPixelFormat GetRawImageDescriptionPtr GetRawImagePtr GetSharedImageClass GetTransparent InternalReleaseBitmapHandle InternalReleaseMaskHandle InternalReleasePalette IsStreamFormatSupported LazarusResourceTypeValid LoadFromResourceID LoadFromResourceName MaskHandleAllocated MaskHandleNeeded PaletteAllocated PaletteNeeded ReadData ReadStream Remove SetHandle SetHandles SetPixelFormat SetSize SetTransparent Sort UnshareImage UpdateCurrentView UpdateHandle UpdateHandles WriteStream

From TRasterImage (49)

ApplyTransparent BeginUpdate BitmapHandle BitmapHandleNeeded Canvas Changed CreateDefaultBitmapHandle CreateIntfImage Destroy Draw EndUpdate FreeImage FreeSaveStream GetEmpty GetHandle GetHeight GetMasked GetMimeType GetSize GetSupportedSourceMimeTypes GetWidth HandleAllocated LoadFromBitmapHandles LoadFromDevice LoadFromIntfImage LoadFromMimeStream LoadFromRawImage LoadFromStream Mask Masked MaskHandle PixelFormat RawImage ReleaseBitmapHandle ReleaseMaskHandle ReleasePalette RequestTransparentColor SaveStreamNeeded SaveToStream ScanLine SetBitmapHandle SetHeight SetMasked SetMaskHandle SetTransparentMode SetWidth TransparentColor TransparentMode WriteData

From TGraphic (22)

DefineProperties Empty Equals Height LoadFromClipboardFormat LoadFromClipboardFormatID LoadFromFile LoadFromLazarusResource MimeType Modified OnChange OnProgress Palette PaletteModified Progress SaveToClipboardFormat SaveToClipboardFormatID SaveToFile SetModified SetPalette Transparent Width

From TPersistent (6)

AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (39)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.