ImageEn, unit iexBitmaps

TIEBitmap.IsAllBlack

TIEBitmap.IsAllBlack


Declaration

function IsAllBlack(): boolean;


Description

Return true if all pixels are Zero.


Examples

If iebmp.IsAllBlack() then
  ShowMessage( 'Image is completely black' );

if bmp.HasAlphaChannel(True) and bmp.AlphaChannel.IsAllBlack() then
  ShowMessage( 'Image is completely transparent' )
else
  ShowMessage( 'Image NOT transparent' );


See Also

Full
SyncFull
IsEmpty
IsBlank