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

# TRasterImage.GetHandle

Gets the value for the handle used in the image.

## Declaration

Source position: graphics.pp line 1265

`protected function TRasterImage.GetHandle: TLCLHandle;`

## Function result

Handle for the raster image.

## Description

Calls HandleNeeded to ensure that valid handle(s) exist for the image. The return value is the handle in the shared raster image for the class instance.

## Version info

Modified in LCL version 4.0 to use the TLCLHandle type instead of the deprecated THandle type in the return value.

## See also

TRasterImage.HandleNeeded |  | Ensures that a handle for the image is allocated in widgetset classes.
TRasterImage.BitmapHandle |  | BitmapHandle - the Handle that has been allocated for the Bitmap.
TRasterImage.MaskHandle |  | The handle allocated for the Bitmap Mask.
LCLType.TLCLHandle |  | Alias to the TLCLHandle type defined for widgetset references.
WSReferences.TLCLHandle |  | The type used for handles in LCL applications, components, controls, and widget set classes.