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

# TSharedRasterImage

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

Implements a reference counted raster image that may be shared between controls.

## Declaration

Source position: graphics.pp line 1218

`type TSharedRasterImage = class(TSharedImage)`
`protected`
`procedure FreeHandle; override;` |  | Frees the handle for the shared image.
`function ReleaseHandle; virtual;` |  | Returns the handle that has just been released.
`function IsEmpty; virtual;` |  | Indicates if image content has been assigned for the shared image.
`public`
`constructor Create; virtual;` |  | Constructor for the class instance.
`procedure CreateDefaultHandle(); virtual; abstract;` |  | Abstract virtual method not implemented in the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`function HandleAllocated; override;` |  | Determines whether the Handle for the class has been allocated.
`property BitmapCanvas: TCanvas; [rw]` |  | Canvas used to render the bitmap for the raster image.
`property SaveStream: TMemoryStream; [rw]` |  | SaveStream - the memory stream to be used for saving this image.
`end;`

## Inheritance

`TSharedRasterImage` |  | Implements a reference counted raster image that may be shared between controls.
`TSharedImage` |  | Specifies the base class for reference-counted shared images.
`TObject`