Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂EmptyMethodPublic

TCustomBitmap32.Empty

Returns True if either Width or Height of the bitmap is zero.

Declaration ​

pascal
function Empty: Boolean; override;

Returns ​

TypeDescription
BooleanReturns True if the bitmap has zero area or an unallocated pixel buffer; otherwise False.

Description ​

Empty returns True if the bitmap has zero pixel width or height.

Example ​

pascal
if not Bitmap.Empty then
  Bitmap.Clear;