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

# TCustomBitmap.MaskHandleAllocated

Determines if the mask handle has been allocated for the image.

## Declaration

Source position: graphics.pp line 1423

`public function TCustomBitmap.MaskHandleAllocated: Boolean; override;`

## Function result

Returns True if a mask handle has been allocated for the image.

## Description

MaskHandleNeeded is an overridden Boolean function in TCustomBitmap, and is used to determine if MaskHandle has been allocated for the image mask. It implements the abstract virtual method defined in the ancestor class.

The return value is True when the MaskHandle property contains a non-zero value.

MaskHandleAllocated is used in the implementation of methods like:

- BitmapHandleNeeded
- SetTransparentColor
- SetBitmapHandle
- CreateMask
- Assign

## See also

TRasterImage.MaskHandleAllocated |  | MaskHandleAllocated - returns True if a handle has been allocated for the Mask.
TRasterImage.MaskHandle |  | The handle allocated for the Bitmap Mask.
TRasterImage.Masked |  | Masked - returns True if a Mask is being applied.