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

# TSharedRasterImage

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

TSharedRasterImage - a reference counted raster image (may be shared between several controls)

## Declaration

Source position: graphics.pp line 1198

`type TSharedRasterImage = class(TSharedImage)`
`protected`
`procedure FreeHandle; override;` |  | Release the handle for this image and free its resources
`function ReleaseHandle; virtual;` |  | ReleaseHandle - returns the identity of the handle that has just been released
`function IsEmpty; virtual;` |  | IsEmpty - checks if there is actually an image at the reference, and returns True if there is not
`public`
`constructor Create; virtual;` |  |
`procedure CreateDefaultHandle(); virtual; abstract;` |  | CreateDefaultHandle - virtual abstract method for creating a default handle for the shared raster image
`destructor Destroy; override;` |  |
`function HandleAllocated; override;` |  | Has a handle been allocated for this image?
`property BitmapCanvas: TCanvas; [rw]` |  | BitmapCanvas - the canvas to be used for painting this bitmap
`property SaveStream: TMemoryStream; [rw]` |  | SaveStream - the memory stream to be used for saving this image
`end;`

## Inheritance

`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 .