Sign in Join
FPDoc Onlineexperiment

TIcnsIcon class

In unit Graphics

Implements a macOS Icon Resource file.

Declaration

pascal
TIcnsIcon = class(TCustomIcon)

Inheritance

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

Description

TIcnsIcon is a TCustomIcon descendant which implements a class used for macOS Icon resources. TIcnsIcon is similar to the .ICO format used on Windows platforms. An Icns Icon can store one or more images, which generally use the PNG image format. Standard icon sizes used in Icns Icon files include: 16x16, 32x32, 48x48, 128x128, 256x256, 512x512, and 1024x1024 pixels.

See also

Methods

GetSharedImageClassprotectedGets the class reference used to create the shared image for the icon.
ReadDataprotectedReads icon data from the specified stream, and performs byte order conversion when needed.
ReadStreamprotectedReads each of the icon resources from the specified stream, and adds them to the list of icon images.
WriteStreamprotectedWrites each of the icon resources in the list to the specified stream.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
GetFileExtensionspublicGets the file extension(s) used for the icon type.
LazarusResourceTypeValidpublicChecks whether the specified Resource Type name is valid for the icon type.

Inherited

From TCustomIcon (47)

Add Assign AssignImage BitmapHandleAllocated CanShareImage CheckRequestedSize Clear Count Current Delete ExportImage GetBestIndexForSize GetBitmapHandle GetDefaultSize GetDescription GetIndex GetMaskHandle GetPalette GetPixelFormat GetRawImageDescriptionPtr GetRawImagePtr GetStreamSignature GetTransparent GetTypeID HandleNeeded InternalReleaseBitmapHandle InternalReleaseMaskHandle InternalReleasePalette IsStreamFormatSupported LoadFromResourceHandle LoadFromResourceID LoadFromResourceName MaskHandleAllocated MaskHandleNeeded PaletteAllocated PaletteNeeded Remove SetHandle SetHandles SetPixelFormat SetSize SetTransparent Sort UnshareImage UpdateCurrentView UpdateHandle UpdateHandles

From TRasterImage (48)

ApplyTransparent BeginUpdate BitmapHandle BitmapHandleNeeded Canvas Changed CreateDefaultBitmapHandle CreateIntfImage 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 (23)

DefineProperties Empty Equals GetResourceType 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.