Sign in Join
FPDoc Onlineexperiment

TSharedCustomBitmap class

In unit Graphics

Implements the base class for a reference-counted shared image.

Declaration

pascal
TSharedCustomBitmap = class(TSharedRasterImage)

Inheritance

  1. TSharedCustomBitmap
  2. TSharedRasterImage
  3. TSharedImage

Descends from it: TSharedBitmap TSharedGIFImage TSharedJpegImage TSharedPixmap TSharedPortableAnyMapGraphic TSharedPortableNetworkGraphic TSharedTiffImage

Description

TSharedCustomBitmap is a TSharedRasterImage descendant which implements the base class for reference-counted shared images, like: TSharedBitmap, TSharedPixmap, TSharedJPEGImage, TSharedPortableNetworkGraphic and TSharedPortableAnyMapGraphic.

See also

Properties

HandleTypepublicHandleType the type of Bitmap Handle that has been allocated.
HeightpublicThe Height of the Bitmap.
PixelFormatpublicStorage format for pixels in the raw image data.
WidthpublicThe Width of the Bitmap.

Methods

FreeHandleprotectedFrees the Handle and the Palette for the shared Bitmap.
FreePaletteprotectedFrees the handle in the Palette property.
FreeImageprotectedFrees raw image data for the shared bitmap and resets its image descriptor.
ReleasePaletteprotectedReturns the Handle of the released Palette.
GetPixelFormatprotectedGets the value for the PixelFormat property.
IsEmptyprotectedDetermines if the shared bitmap is empty.
CreatepublicCreate - constructor for TSharedCustomBitmap: calls inherited Create and initializes the image.
DestroypublicDestructor for the class instance.
HandleAllocatedpublicDetermines if the handle for the shared bitmap has been allocated.
ImageAllocatedpublicImageAllocated - returns True if an image has been allocated.

Inherited

From TSharedRasterImage (4)

BitmapCanvas CreateDefaultHandle ReleaseHandle SaveStream

From TSharedImage (3)

RefCount Reference Release

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.