[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TSharedCustomBitmap

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TSharedCustomBitmap - a reference counted base class for TSharedBitmap, TSharedPixmap, TSharedJPEGImage, TSharedPortableNetworkGraphic and TSharedPortableAnyMapGraphic

## Declaration

Source position: graphics.pp line 1335

`type TSharedCustomBitmap = class(TSharedRasterImage)`
`protected`
`procedure FreeHandle; override;` |  | FreeHandle frees Palette then calls inherited FreeHandle
`procedure FreePalette;` |  | FreePalette - release the Palette
`procedure FreeImage;` |  | FreeImage - release the Image from the Bitmap
`function ReleasePalette;` |  | ReleasePalette - returns the Handle of the released Palette
`function GetPixelFormat;` |  | GetPixelFormat - returns the format for the Pixels in this Bitmap
`function IsEmpty; override;` |  | IsEmpty - checks if there is actually an image at the reference, and returns True if there is not
`public`
`constructor Create; override;` |  | Create - constructor for TSharedCustomBitmap: calls inherited Create and initialises the image
`destructor Destroy; override;` |  | Destroy - destructor for TSharedCustomBitmap: frees stream, handle and image, then calls inherited Destroy
`function HandleAllocated; override;` |  | Has a handle been allocated for this image?
`function ImageAllocated;` |  | ImageAllocated - returns True if an image has been allocated
`property HandleType: TBitmapHandleType; [rw]` |  | HandleType the type of Bitmap Handle that has been allocated
`property Height: Integer; [r]` |  | The Height of the Bitmap
`property PixelFormat: TPixelFormat; [r]` |  | PixelFormat - the format for the Pixels in this Bitmap
`property Width: Integer; [r]` |  | The Width of the Bitmap
`end;`

## Inheritance

`TSharedCustomBitmap` |  | TSharedCustomBitmap - a reference counted base class for TSharedBitmap, TSharedPixmap, TSharedJPEGImage, TSharedPortableNetworkGraphic and TSharedPortableAnyMapGraphic
`TSharedRasterImage` |  | TSharedRasterImage - a reference counted raster image (may be shared between several controls)
`TSharedImage` |  | TSharedImage - base class for reference counted images
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.