Sign in Join
FPDoc Onlineexperiment

TSharedImage class

In unit Graphics

Specifies the base class for reference-counted shared images.

Declaration

pascal
TSharedImage = class

Descends from it: TSharedRasterImage

Description

TSharedImage is a class which specifies the base class for reference-counted shared images. TSharedImage defines properties and methods which are used to track and maintain the reference count for a shared image.

Use the RefCount property to determine the number of references acquired for a shared image.

Use Reference to increment the value in RefCount. Use Release to decrement the value in RefCount.

TSharedImage includes abstract virtual methods, like HandleAllocated and FreeHandle, which must be implemented in a descendent class to perform actions needed for the handle in a specific image type.

TSharedImage is the ancestor for the TSharedRasterImage class.

See also

Properties

RefCountprotectedThe number of references to this shared image.

Methods

ReferenceprotectedIncreases the reference count.
ReleaseprotectedDecreases the reference count.
FreeHandleprotectedRelease the handle for this image and free its resources.
HandleAllocatedpublicIndicates whether a handle been allocated for the image.

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