Sign in Join
FPDoc Onlineexperiment

TCustomImageListResolution class

In unit ImgList

Implements an image resolution (or size) used in TCustomImageList.

Declaration

pascal
TCustomImageListResolution = class(TLCLReferenceComponent)

Inheritance

  1. TCustomImageListResolution
  2. TLCLReferenceComponent
  3. TLCLComponent
  4. TComponent
  5. TPersistent
  6. TObject

Descends from it: TDragImageListResolution

Description

TCustomImageListResolution is a TLCLReferenceComponent descendant that implements an image resolution (or size) used in TCustomImageList. TCustomImageListResolution (along with TCustomImageListResolutions) is the mechanism which makes multiple resolutions possible in TCustomImageList.

TCustomImageListResolution provides properties that indicate the Height and Width of images stored in the resolution. It also contains the 32-bit RGBA raw image data for its images, the handle for its image list, and whether the resolution was created at design-time. Methods are provided to access and maintain the bitmap images (or their masks) used in the resolution. Other methods can be used to get the images as bitmaps, icons, or raw image data.

TCustomImageListResolution instances are created and stored in a TCustomImageListResolutions container. TCustomImageListResolution is the type used for the Resolution and ResolutionByIndex properties in TCustomImageList.

See also

Properties

ImageListpublicImage list which owns the resolution.
WidthpublicWidth of the images stored in the resolution.
HeightpublicHeight of the images stored in the resolution.
CountpublicNumber of images stored in the resolution.
AutoCreatedInDesignTimepublicIndicates if the Resolution was auto-created at design-time.
ReferencepublicReference to the widgetset image list using this resolution.

Methods

ReadDataprotectedReads raw image data from the specified Stream.
WriteDataprotectedStores the raw image data for the resolution to a Stream.
GetReferenceHandleprotectedGets the handle from the widgetset Reference for the image list.
WSCreateReferenceprotectedCreates the Reference image list using the facilities for the widgetset.
WSRegisterClassprotectedRegisters the class type used to create references for the widgetset.
ReferenceDestroyingprotectedNotifies an image list list when the handle for the resolution is freed.
UpdateReferenceprotectedForces the reference counted image list for the resolution to be freed and recreated.
DestroypublicDestructor for the class instance.
GetHotSpotpublicGet the coordinates for the HotSpot in an image in the list.
FillDescriptionpublicStores the image description for the raw image data for the resolution.
GetBitmappublicGets the bitmap for an image drawn using the specified drawing effect.
GetIconpublicGets an Icon rendered using the specified drawing effect.
GetFullBitmappublicGets a bitmap representing all images in the resolution.
GetRawImagepublicGets the 32-bit RGBA raw image data for the specified image.
DrawpublicRenders an image to the specified canvas.
StretchDrawpublicDraws an image stretched to the dimensions for the target rectangle.
DrawOverlaypublicDraws the specified image with the given overlay.

Fields

FDataprotectedMember used to store the RGBA color values for pixels used in the images for the resolution.

Inherited

From TLCLReferenceComponent (7)

CreateParams DestroyReference HandleAllocated ReferenceAllocated ReferenceCreated ReferenceNeeded WSDestroyReference

From TLCLComponent (7)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

From TComponent (75)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle Create DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

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

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