Sign in Join
FPDoc Onlineexperiment

TCustomBitmap.GetSharedImageClass function

Member of TCustomBitmapprotectedIn unit Graphics

Gets the class reference used to create new shared image instances in the class.

Declaration

pascal
class function GetSharedImageClass: TSharedRasterImageClass; override

Function result

TSharedCustomBitmap class type for the shared image.

Description

GetSharedImageClass is an overridden method in TCustomBitmap. The return value is a TSharedRasterImageClass class reference used to create a shared image in the class instance. The return value is actually TSharedCustomBitmap in the method implementation.

GetSharedImageClass is called from the Assign method when a reference to an existing image is stored in the class instance. It is also used in CanShareImage to determine is the request image type is the one used in the current class instance.

See also

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