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

# TSharedCustomBitmap.IsEmpty

Determines if the shared bitmap is empty.

## Declaration

Source position: graphics.pp line 1359

`protected function TSharedCustomBitmap.IsEmpty: Boolean; override;`

## Function result

True if the shared bitmap is empty.

## Description

IsEmpty is an overridden method in TSharedCustomBitmap used to determine if the shared bitmap is empty. IsEmpty calls the inherited method on entry, and adds additional logic needed for the Bitmap image format.

The return value is True when all of the following conditions are met:

- The Handle is unassigned (contains 0).
- The internal save stream for the image is not assigned.
- The color format used for raw image data is ricfNone.
- The raw image data is Nil.
- The raw image data size is 0.

## See also

TSharedRasterImage.IsEmpty |  | Indicates if image content has been assigned for the shared image.