TIcon class
Implements an icon image type; small images typically associated with applications, controls, etc.
Declaration
TIcon = class(TCustomIcon)Inheritance
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
Handle | public | Handle used to access the image data for the icon. |
Methods
GetStreamSignature | protected | Gets the stream signature used for icon data. |
GetTypeID | protected | Gets the icon type identifier used in the image list header. |
HandleNeeded | protected | Ensures that handle values for the icon are valid. |
LoadFromResourceHandle | public | Loads icon data from the specified instance and resource handles. |
ReleaseHandle | public | Frees the Handle used for the shared image in the Icon. |
GetResourceType | public | Gets 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.
