Sign in Join
FPDoc Onlineexperiment

TSharedCustomBitmap.IsEmpty function

Member of TSharedCustomBitmapprotectedIn unit Graphics

Determines if the shared bitmap is empty.

Declaration

pascal
function IsEmpty: Boolean; override

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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.